Fixed array to string conversion
authorAlexander Ebert <ebert@woltlab.com>
Fri, 18 May 2012 16:17:31 +0000 (18:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 18 May 2012 16:17:31 +0000 (18:17 +0200)
Fixes #577

wcfsetup/install/files/lib/data/language/SetupLanguage.class.php

index afaf562f08cbd0d1e5735a68a22a023708b7e3ce..4b39989e37464976f2059ddfd08b436e818284a4 100644 (file)
@@ -64,7 +64,8 @@ class SetupLanguage extends Language {
                                        
                                        // compile dynamic language variables
                                        if (strpos($name['cdata'], '{') !== false) {
-                                               $file->write("\$this->dynamicItems['".$name['name']."'] = '".str_replace("'", "\'", LanguageFactory::getInstance()->getScriptingCompiler()->compileString($name['name'], $name['cdata']))."';\n");
+                                               $compiledString = LanguageFactory::getInstance()->getScriptingCompiler()->compileString($name['name'], $name['cdata']);
+                                               $file->write("\$this->dynamicItems['".$name['name']."'] = '".str_replace("'", "\'", $compiledString['template'])."';\n");
                                        }
                                }