From: Alexander Ebert Date: Tue, 8 Mar 2016 13:13:39 +0000 (+0100) Subject: Fixed I18nHandler usage X-Git-Tag: 3.0.0_Beta_1~2030^2~57 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=465c69b5e9aff41ee64496ce10010263ca256938;p=GitHub%2FWoltLab%2FWCF.git Fixed I18nHandler usage --- diff --git a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php index 7c6192c432..93196fcd25 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php @@ -239,7 +239,7 @@ class MenuItemAddForm extends AbstractForm { public function assignVariables() { parent::assignVariables(); - I18nHandler::getInstance()->assignVariables(!empty($_POST)); + I18nHandler::getInstance()->assignVariables(); WCF::getTPL()->assign([ 'action' => 'add', diff --git a/wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php index 1ac64f0a1a..b6123e3c02 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php @@ -120,6 +120,8 @@ class MenuItemEditForm extends MenuItemAddForm { public function assignVariables() { parent::assignVariables(); + I18nHandler::getInstance()->assignVariables(!empty($_POST)); + WCF::getTPL()->assign(array( 'action' => 'edit', 'itemID' => $this->itemID,