Skip to content

Commit

Permalink
#1668 Fixes a missing space in quote titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Jun 12, 2018
1 parent 142fb39 commit 5da3445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function do_bbcode($text, $is_signature = false)

if (strpos($text, '[quote') !== false) {
$text = preg_replace('%\[quote\]\s*%', '</p><blockquote><p>', $text);
$text = preg_replace_callback('%\[quote=(&quot;|&\#039;|"|\'|)([^\r\n]*?)\\1\]%s', function($matches) { return '</p><blockquote><footer><cite>'.str_replace(array('[', '\\"'), array('&#91;', '"'), $matches[2]).__('wrote', 'luna') ."</cite></footer><p>"; }, $text);
$text = preg_replace_callback('%\[quote=(&quot;|&\#039;|"|\'|)([^\r\n]*?)\\1\]%s', function($matches) { return '</p><blockquote><footer><cite>'.str_replace(array('[', '\\"'), array('&#91;', '"'), $matches[2])." ".__('wrote', 'luna') ."</cite></footer><p>"; }, $text);
$text = preg_replace('%\s*\[\/quote\]%S', '</p></blockquote><p>', $text);
}

Expand Down

0 comments on commit 5da3445

Please sign in to comment.