From: Alexander Ebert Date: Fri, 18 May 2012 16:17:31 +0000 (+0200) Subject: Fixed array to string conversion X-Git-Tag: 2.0.0_Beta_1~1101^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8aebae4c3801c1867ecf44da6a40c78c33e99d5;p=GitHub%2FWoltLab%2FWCF.git Fixed array to string conversion Fixes #577 --- diff --git a/wcfsetup/install/files/lib/data/language/SetupLanguage.class.php b/wcfsetup/install/files/lib/data/language/SetupLanguage.class.php index afaf562f08..4b39989e37 100644 --- a/wcfsetup/install/files/lib/data/language/SetupLanguage.class.php +++ b/wcfsetup/install/files/lib/data/language/SetupLanguage.class.php @@ -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"); } }