From a3621b375e58941f8064832b71143de52dd4ebd9 Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Wed, 15 Apr 2020 08:30:35 -0700 Subject: [PATCH] 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> --- .../smarty_internal_compile_private_special_variable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_compile_private_special_variable.php b/libs/sysplugins/smarty_internal_compile_private_special_variable.php index d02c5cd1..62900767 100644 --- a/libs/sysplugins/smarty_internal_compile_private_special_variable.php +++ b/libs/sysplugins/smarty_internal_compile_private_special_variable.php @@ -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"); break; } - $variableToUpper = strtr($variable, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'); + $variableUpper = strtr($variable, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'); $compiled_ref = '$_' . $variableUpper; break; case 'template':