mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/template-engine] Removed some dead code.
PHPBB3-9726
This commit is contained in:
parent
d06e59f63b
commit
b057d7439e
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue