aboutsummaryrefslogtreecommitdiffstats
path: root/include/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php')
-rw-r--r--include/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php b/include/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php
index 21e6e5221..ce6749770 100644
--- a/include/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php
+++ b/include/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