mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
Merge remote-tracking branch 'nickvergessen/ticket/10876' into develop
This commit is contained in:
@@ -209,7 +209,7 @@ class phpbb_template_filter extends php_user_filter
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$data = preg_replace('~(?<!^)(<\?php(?:(?<!\?>).)+(?<!/\*\*/)\?>)$~m', "$1\n", $data);
|
$data = preg_replace('~(?<!^)(<\?php.+(?<!/\*\*/)\?>)$~m', "$1\n", $data);
|
||||||
$data = str_replace('/**/?>', "?>\n", $data);
|
$data = str_replace('/**/?>', "?>\n", $data);
|
||||||
$data = str_replace('?><?php', '', $data);
|
$data = str_replace('?><?php', '', $data);
|
||||||
return $data;
|
return $data;
|
||||||
|
Reference in New Issue
Block a user