Fixed I18nHandler usage
authorAlexander Ebert <ebert@woltlab.com>
Tue, 8 Mar 2016 13:13:39 +0000 (14:13 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 8 Mar 2016 13:13:39 +0000 (14:13 +0100)
wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php
wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php

index 7c6192c432dfb1dae08123d6577661e5bfb6fc5a..93196fcd25c736473a331aa6d2c8b6f2780d2014 100644 (file)
@@ -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',
index 1ac64f0a1a5af5896b99f5ebe08f99b8e98be427..b6123e3c02b21da44cf2443a2972af2095ce0259 100644 (file)
@@ -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,