From: Alexander Ebert Date: Thu, 9 Feb 2012 13:03:35 +0000 (+0100) Subject: Fixes API usage X-Git-Tag: 2.0.0_Beta_1~1358^2~27 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c08ada7794454cd8098c7e90f82c6fb2cb5f4799;p=GitHub%2FWoltLab%2FWCF.git Fixes API usage --- diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index b024de5af0..4ec3524774 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -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"); } }