Fixes API usage
authorAlexander Ebert <ebert@woltlab.com>
Thu, 9 Feb 2012 13:03:35 +0000 (14:03 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 9 Feb 2012 13:03:35 +0000 (14:03 +0100)
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php

index b024de5af005b6afef6f9729b8bfa78c8321eacf..4ec35247741c48f04748bf3c4c557fcaf9d34aec 100644 (file)
@@ -132,7 +132,8 @@ class LanguageEditor extends DatabaseObjectEditor {
                                                
                                                // compile dynamic language variables
                                                if ($categoryName != 'wcf.global' && strpos($languageItemValue, '{') !== false) {
-                                                       $file->write("\$this->dynamicItems['".$languageItem."'] = '".str_replace("'", "\'", LanguageFactory::getInstance()->getScriptingCompiler()->compileString($languageItem, $languageItemValue))."';\n");
+                                                       $output = LanguageFactory::getInstance()->getScriptingCompiler()->compileString($languageItem, $languageItemValue);
+                                                       $file->write("\$this->dynamicItems['".$languageItem."'] = '".str_replace("'", "\'", $output['template'])."';\n");
                                                }
                                        }