From: Michael Vogel Date: Tue, 23 Feb 2016 06:21:40 +0000 (+0100) Subject: The "abstract" has moved after the "nobb" part in bbcode. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc283a5316e7f58edd26a93d8811b30527d8100c;p=friendica.git The "abstract" has moved after the "nobb" part in bbcode. --- diff --git a/include/bbcode.php b/include/bbcode.php index eb009477cf..c1156e3afe 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -851,9 +851,6 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal $a = get_app(); - // Remove the abstract element. It is a non visible element. - $Text = remove_abstract($Text); - // Hide all [noparse] contained bbtags by spacefying them // POSSIBLE BUG --> Will the 'preg' functions crash if there's an embedded image? @@ -861,6 +858,8 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal $Text = preg_replace_callback("/\[nobb\](.*?)\[\/nobb\]/ism", 'bb_spacefy',$Text); $Text = preg_replace_callback("/\[pre\](.*?)\[\/pre\]/ism", 'bb_spacefy',$Text); + // Remove the abstract element. It is a non visible element. + $Text = remove_abstract($Text); // Move all spaces out of the tags $Text = preg_replace("/\[(\w*)\](\s*)/ism", '$2[$1]', $Text);