From c8aebae4c3801c1867ecf44da6a40c78c33e99d5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 18 May 2012 18:17:31 +0200 Subject: [PATCH] Fixed array to string conversion Fixes #577 --- .../install/files/lib/data/language/SetupLanguage.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); } } -- 2.20.1