X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fquoteconvert.php;h=3a2292dddcd75ecfbe1d67840da9a1b9818f73ae;hb=aeaafb5d71cfa72d85bcd04cb333afd6c9b41c33;hp=3aee93234fdc1b4ee0e1cd7f96ee595abb9f7ec5;hpb=18679111f5aed8f1c5e7ccb9857195e52c57765d;p=friendica.git diff --git a/include/quoteconvert.php b/include/quoteconvert.php index 3aee93234f..3a2292dddc 100644 --- a/include/quoteconvert.php +++ b/include/quoteconvert.php @@ -83,7 +83,7 @@ function removetofu($message) $start = 0; - while(($pos = strpos($message, '[quote', $start)) > 0) { + while (($pos = strpos($message, '[quote', $start)) > 0) { $quotes[$pos] = -1; $start = $pos + 7; $startquotes++; @@ -92,7 +92,7 @@ function removetofu($message) $endquotes = 0; $start = 0; - while(($pos = strpos($message, '[/quote]', $start)) > 0) { + while (($pos = strpos($message, '[/quote]', $start)) > 0) { $start = $pos + 7; $endquotes++; } @@ -104,7 +104,7 @@ function removetofu($message) $start = 0; - while(($pos = strpos($message, '[/quote]', $start)) > 0) { + while (($pos = strpos($message, '[/quote]', $start)) > 0) { $quotes[$pos] = 1; $start = $pos + 7; } @@ -124,7 +124,7 @@ function removetofu($message) } if ($quotestart != 0) { - $message = trim(substr($message, 0, $quotestart))."\n[collapsed]\n".substr($message, $quotestart+7, -8).'[/collapsed]'; + $message = trim(substr($message, 0, $quotestart))."\n[spoiler]".substr($message, $quotestart+7, -8).'[/spoiler]'; } return($message);