From 4af23bc104e4c3e8c94f532b2601b9fa91f672ea Mon Sep 17 00:00:00 2001 From: Stricted Date: Tue, 12 May 2015 15:44:54 +0200 Subject: [PATCH] fix last commit --- .../smarty_internal_compile_private_special_variable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_compile_private_special_variable.php b/libs/sysplugins/smarty_internal_compile_private_special_variable.php index a7f37203..894b7532 100644 --- a/libs/sysplugins/smarty_internal_compile_private_special_variable.php +++ b/libs/sysplugins/smarty_internal_compile_private_special_variable.php @@ -82,7 +82,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C $compiler->trigger_template_error("(secure mode) constants not permitted"); break; } - if (strpos($_index[1], '$') === false && strpos($_index[1], '\'')) { + if (strpos($_index[1], '$') === false && strpos($_index[1], '\'') === false ) { return "@constant('{$_index[1]}')"; } else { return "@constant({$_index[1]})";