From: Alexander Ebert Date: Fri, 10 Feb 2012 14:57:28 +0000 (+0100) Subject: Fixed variable assignment within {include} X-Git-Tag: 2.0.0_Beta_1~1358^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52e045057fad13e43fd4d665bc6e271d9ab3fad6;p=GitHub%2FWoltLab%2FWCF.git Fixed variable assignment within {include} --- 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."'");