From 52e045057fad13e43fd4d665bc6e271d9ab3fad6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 10 Feb 2012 15:57:28 +0100 Subject: [PATCH] Fixed variable assignment within {include} --- .../lib/system/template/TemplateScriptingCompiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 3bef6a5d23..41689e0861 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -785,7 +785,7 @@ class TemplateScriptingCompiler { } else { if (preg_match('~^\$this->v\[\'(.*)\'\]$~U', $value, $matches)) { - $phpCode .= "\$this->v['".$matches[1]."'] = ".$value.";\n"; + $phpCode .= "\$this->v['".$variable."'] = ".$value.";\n"; } else { throw new SystemException("Could not resolve variable type for value '".$value."'"); -- 2.20.1