From: Matthias Schmidt Date: Fri, 8 Jan 2016 16:54:26 +0000 (+0100) Subject: Fix menu items' title language item created during installation X-Git-Tag: 3.0.0_Beta_1~2030^2~165^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=abec87898aee145b7e5b98ee0dcfd2290a19469b;p=GitHub%2FWoltLab%2FWCF.git Fix menu items' title language item created during installation --- 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);