From 39d28bd43e4418632c1a755e9b948058f748a9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 4 Feb 2008 12:07:23 +0000 Subject: #215858 by pwolanin: localized menu options were saved into the database, avoid this by using different variable names / array keys --- modules/system/system.admin.inc | 12 ++++-------- modules/system/system.module | 4 ++-- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index d1200a7b5..928412531 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -35,8 +35,8 @@ function system_main_admin_page($arg = NULL) { } // The link 'description' either derived from the hook_menu 'description' // or entered by the user via menu module is saved as the title attribute. - if (!empty($item['options']['attributes']['title'])) { - $item['description'] = $item['options']['attributes']['title']; + if (!empty($item['localized_options']['attributes']['title'])) { + $item['description'] = $item['localized_options']['attributes']['title']; } $block = $item; $block['content'] = ''; @@ -1856,18 +1856,14 @@ function theme_admin_block_content($content) { if (system_admin_compact_mode()) { $output = ''; } else { $output = '
'; foreach ($content as $item) { - $output .= '
'. l($item['title'], $item['href'], $item['options']) .'
'; + $output .= '
'. l($item['title'], $item['href'], $item['localized_options']) .'
'; $output .= '
'. $item['description'] .'
'; } $output .= '
'; diff --git a/modules/system/system.module b/modules/system/system.module index a7619c207..329cc03e3 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -629,8 +629,8 @@ function system_admin_menu_block($item) { } // The link 'description' either derived from the hook_menu 'description' or // entered by the user via menu module is saved as the title attribute. - if (!empty($item['options']['attributes']['title'])) { - $item['description'] = $item['options']['attributes']['title']; + if (!empty($item['localized_options']['attributes']['title'])) { + $item['description'] = $item['localized_options']['attributes']['title']; } // Prepare for sorting as in function _menu_tree_check_access(). // The weight is offset so it is always positive, with a uniform 5-digits. -- cgit v1.2.3