summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_resource_recompiled.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_resource_recompiled.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_resource_recompiled.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/smarty3/sysplugins/smarty_resource_recompiled.php b/lib/smarty3/sysplugins/smarty_resource_recompiled.php
index 7e51d1b..760c4dd 100644
--- a/lib/smarty3/sysplugins/smarty_resource_recompiled.php
+++ b/lib/smarty3/sysplugins/smarty_resource_recompiled.php
@@ -49,9 +49,8 @@ abstract class Smarty_Resource_Recompiled extends Smarty_Resource
$_smarty_tpl->loadCompiler();
// call compiler
try {
- eval("?>" . $_smarty_tpl->compiler->compileTemplate($_smarty_tpl));
- }
- catch (Exception $e) {
+ eval('?>' . $_smarty_tpl->compiler->compileTemplate($_smarty_tpl));
+ } catch (Exception $e) {
unset($_smarty_tpl->compiler);
while (ob_get_level() > $level) {
ob_end_clean();
@@ -68,8 +67,8 @@ abstract class Smarty_Resource_Recompiled extends Smarty_Resource
/**
* populate Compiled Object with compiled filepath
*
- * @param Smarty_Template_Compiled $compiled compiled object
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Template_Compiled $compiled compiled object
+ * @param Smarty_Internal_Template $_template template object
*
* @return void
*/
@@ -85,6 +84,9 @@ abstract class Smarty_Resource_Recompiled extends Smarty_Resource
*
* @return bool
*/
+ /**
+ * @return bool
+ */
public function checkTimestamps()
{
return false;