aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template_compile.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/template_compile.php')
-rw-r--r--phpBB/includes/template_compile.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/includes/template_compile.php b/phpBB/includes/template_compile.php
index 553f99bd8c..1feab3b7c4 100644
--- a/phpBB/includes/template_compile.php
+++ b/phpBB/includes/template_compile.php
@@ -118,8 +118,6 @@ class phpbb_template_filter extends php_user_filter
$data = preg_replace('~<!-- ENDPHP -->.*?$~', '', $data);
}
- "?>/**/";
-
/*
Preserve whitespace.
PHP removes a newline after the closing tag (if it's there). This is by design.
@@ -145,7 +143,7 @@ class phpbb_template_filter extends php_user_filter
*/
-//*
+
$data = preg_replace('~(?<!^)(<\?php(?:(?<!\?>).)+(?<!/\*\*/)\?>)$~m', "$1\n", $data);
$data = str_replace('/**/?>', "?>\n", $data);
$data = str_replace('?><?php', '', $data);