mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
@@ -82,7 +82,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
|||||||
$compiler->trigger_template_error("(secure mode) constants not permitted");
|
$compiler->trigger_template_error("(secure mode) constants not permitted");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (strpos($_index[1], '$') === false) {
|
if (strpos($_index[1], '$') === false && strpos($_index[1], '\'') === false ) {
|
||||||
return "@constant('{$_index[1]}')";
|
return "@constant('{$_index[1]}')";
|
||||||
} else {
|
} else {
|
||||||
return "@constant({$_index[1]})";
|
return "@constant({$_index[1]})";
|
||||||
|
Reference in New Issue
Block a user