- Patch #215858 by pwolanin, goba, catch et al: localized menu link data getting saved back to the database.

merge-requests/26/head
Dries Buytaert 2008-02-10 19:49:37 +00:00
parent f383ceef6d
commit 4969495e04
2 changed files with 2 additions and 1 deletions

View File

@ -629,6 +629,7 @@ function _menu_link_translate(&$item) {
$map = array(); $map = array();
$item['href'] = $item['link_path']; $item['href'] = $item['link_path'];
$item['title'] = $item['link_title']; $item['title'] = $item['link_title'];
$item['localized_options'] = $item['options'];
} }
else { else {
$map = explode('/', $item['link_path']); $map = explode('/', $item['link_path']);

View File

@ -622,7 +622,7 @@ function book_build_active_trail($book_link) {
if (!isset($trail)) { if (!isset($trail)) {
$trail = array(); $trail = array();
$trail[] = array('title' => t('Home'), 'href' => '<front>', 'options' => array()); $trail[] = array('title' => t('Home'), 'href' => '<front>', 'localized_options' => array());
$tree = menu_tree_all_data($book_link['menu_name'], $book_link); $tree = menu_tree_all_data($book_link['menu_name'], $book_link);
$curr = array_shift($tree); $curr = array_shift($tree);