aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-03-16 02:09:46 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-11-17 16:39:57 -0500
commitecdb54fc048a0805f724d7a3931373f99744923a (patch)
tree26d5e83f1c63f8e9ee16faff6eda2f6d794b14d4
parentbdbb382a26efb4194e2eb1b6ee5f3913829fc9d1 (diff)
downloadforums-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.php4
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