From bce0caa2e26601468d611c4bade6c4dc2f5ed15b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 13 Oct 2011 19:26:02 +0200 Subject: [PATCH] Added language modifier --- .../LanguageModifierTemplatePlugin.class.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 wcfsetup/install/files/lib/system/template/plugin/LanguageModifierTemplatePlugin.class.php diff --git a/wcfsetup/install/files/lib/system/template/plugin/LanguageModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/LanguageModifierTemplatePlugin.class.php new file mode 100644 index 0000000000..84a4faf975 --- /dev/null +++ b/wcfsetup/install/files/lib/system/template/plugin/LanguageModifierTemplatePlugin.class.php @@ -0,0 +1,26 @@ + + * @package com.woltlab.wcf + * @subpackage system.template.plugin + * @category Community Framework + */ +class LanguageModifierTemplatePlugin implements IModifierTemplatePlugin { + /** + * @see wcf\system\template\IModifierTemplatePlugin::execute() + */ + public function execute($tagArgs, TemplateEngine $tplObj) { + return WCF::getLanguage()->getDynamicVariable($tagArgs[0]); + } +} -- 2.20.1