Fixed variable assignment within {include}
authorAlexander Ebert <ebert@woltlab.com>
Fri, 10 Feb 2012 14:57:28 +0000 (15:57 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 10 Feb 2012 14:57:28 +0000 (15:57 +0100)
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index 3bef6a5d2309f42f79531c8791dd33967bbf4568..41689e08611ac050b918848148fa74227b7e3994 100644 (file)
@@ -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."'");