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:
Alec Smecher
2020-04-15 08:30:35 -07:00
committed by GitHub
parent 0124bc3aa0
commit a3621b375e

View File

@@ -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':