fix last commit

This commit is contained in:
Stricted
2015-05-12 15:44:54 +02:00
parent 811e2e0e13
commit 4af23bc104

View File

@@ -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]})";