1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-20 14:29:48 +02:00

[feature/template-engine] Removed some dead code.

PHPBB3-9726
This commit is contained in:
Oleg Pudeyev 2011-05-04 01:00:40 -04:00
parent d06e59f63b
commit b057d7439e

View File

@ -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);