From abec87898aee145b7e5b98ee0dcfd2290a19469b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 8 Jan 2016 17:54:26 +0100 Subject: [PATCH] Fix menu items' title language item created during installation --- .../files/lib/data/menu/item/MenuItemEditor.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php index 4bf02368bf..ae70bf4373 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php @@ -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 * @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); -- 2.20.1