Fix menu items' title language item created during installation
authorMatthias Schmidt <gravatronics@live.com>
Fri, 8 Jan 2016 16:54:26 +0000 (17:54 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 8 Jan 2016 16:54:26 +0000 (17:54 +0100)
wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php

index 4bf02368bf3643711b1cb79c3c2d67908c0a62fd..ae70bf43736c95e6885808276c8548cb4aaf0af1 100644 (file)
@@ -8,7 +8,7 @@ use wcf\system\WCF;
  * Provides functions to edit menu items.
  * 
  * @author     Marcel Werk
- * @copyright  2001-2015 WoltLab GmbH
+ * @copyright  2001-2016 WoltLab GmbH
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @package    com.woltlab.wcf
  * @subpackage data.menu.item
@@ -51,7 +51,7 @@ class MenuItemEditor extends DatabaseObjectEditor {
                                foreach ($title as $languageCode => $value) {
                                        $statement->execute([
                                                LanguageFactory::getInstance()->getLanguageByCode($languageCode)->languageID,
-                                               'wcf.menu.menuItem' . $menuItem->itemID,
+                                               'wcf.menu.item.title' . $menuItem->itemID,
                                                $value,
                                                1,
                                                $languageCategoryID,
@@ -60,7 +60,7 @@ class MenuItemEditor extends DatabaseObjectEditor {
                                }
                                WCF::getDB()->commitTransaction();
                                
-                               $title = 'wcf.menu.menuItem' . $menuItem->itemID;
+                               $title = 'wcf.menu.item.title' . $menuItem->itemID;
                        }
                        else {
                                $title = reset($title);