From c08ada7794454cd8098c7e90f82c6fb2cb5f4799 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 9 Feb 2012 14:03:35 +0100 Subject: [PATCH] Fixes API usage --- .../install/files/lib/data/language/LanguageEditor.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); } } -- 2.20.1