mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-01 08:54:26 +02:00
@@ -94,9 +94,9 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (strpos($_index[ 1 ], '$') === false && strpos($_index[ 1 ], '\'') === false) {
|
if (strpos($_index[ 1 ], '$') === false && strpos($_index[ 1 ], '\'') === false) {
|
||||||
return "defined('{$_index[1]}') ? constant('{$_index[1]}') : null";
|
return "(defined('{$_index[1]}') ? constant('{$_index[1]}') : null)";
|
||||||
} else {
|
} else {
|
||||||
return "defined({$_index[1]}) ? constant({$_index[1]}) : null";
|
return "(defined({$_index[1]}) ? constant({$_index[1]}) : null)";
|
||||||
}
|
}
|
||||||
// no break
|
// no break
|
||||||
case 'config':
|
case 'config':
|
||||||
|
Reference in New Issue
Block a user