diff options
Diffstat (limited to 'library/Smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php')
-rw-r--r-- | library/Smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/Smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php b/library/Smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php index 21e6e5221..ce6749770 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php +++ b/library/Smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php @@ -89,6 +89,6 @@ class Smarty_Internal_Runtime_CodeFrame $output .= $functions; $output .= "<?php }\n"; // remove unneeded PHP tags - return preg_replace('/\s*\?>[\n]?<\?php\s*/', "\n", $output); + return preg_replace(array('/\s*\?>[\n]?<\?php\s*/', '/\?>\s*$/'), array("\n", ''), $output); } }
\ No newline at end of file |