mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
Update libs/sysplugins/smarty_internal_compile_private_special_variable.php
Fixed variable naming typo (thanks!) Co-Authored-By: Alexkurd <7689609+Alexkurd@users.noreply.github.com>
This commit is contained in:
@@ -77,7 +77,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
|||||||
$compiler->trigger_template_error("(secure mode) super globals not permitted");
|
$compiler->trigger_template_error("(secure mode) super globals not permitted");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$variableToUpper = strtr($variable, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
|
$variableUpper = strtr($variable, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
|
||||||
$compiled_ref = '$_' . $variableUpper;
|
$compiled_ref = '$_' . $variableUpper;
|
||||||
break;
|
break;
|
||||||
case 'template':
|
case 'template':
|
||||||
|
Reference in New Issue
Block a user