diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-03-16 02:09:46 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-17 16:39:57 -0500 |
| commit | ecdb54fc048a0805f724d7a3931373f99744923a (patch) | |
| tree | 26d5e83f1c63f8e9ee16faff6eda2f6d794b14d4 | |
| parent | bdbb382a26efb4194e2eb1b6ee5f3913829fc9d1 (diff) | |
| download | forums-ecdb54fc048a0805f724d7a3931373f99744923a.tar forums-ecdb54fc048a0805f724d7a3931373f99744923a.tar.gz forums-ecdb54fc048a0805f724d7a3931373f99744923a.tar.bz2 forums-ecdb54fc048a0805f724d7a3931373f99744923a.tar.xz forums-ecdb54fc048a0805f724d7a3931373f99744923a.zip | |
[feature/template-events] PHP does not parse <?php?>, avoid generating it.
PHPBB3-9550
| -rw-r--r-- | phpBB/includes/template/filter.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/template/filter.php b/phpBB/includes/template/filter.php index a158dd4074..5129618f03 100644 --- a/phpBB/includes/template/filter.php +++ b/phpBB/includes/template/filter.php @@ -905,7 +905,9 @@ class phpbb_template_filter extends php_user_filter $compiled = $this->template_compile->compile_file($file); $all_compiled .= $compiled; } - return '?>' . $all_compiled . '<?php'; + // Need spaces inside php tags as php cannot grok + // < ?php? > sans the spaces + return ' ?>' . $all_compiled . '<?php '; } // 1. find all mods defining hooks for location |
