diff options
| -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 |
