diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-02-10 19:49:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-02-10 19:49:37 +0000 |
commit | 4969495e04a42e0ac94b6c4ad9ca30bf245e3310 (patch) | |
tree | 2a28b4c273c40684cb3ac7d30331c0efb040437b | |
parent | f383ceef6d8ffb8e824478b1eb8089907fc267bb (diff) | |
download | brdo-4969495e04a42e0ac94b6c4ad9ca30bf245e3310.tar.gz brdo-4969495e04a42e0ac94b6c4ad9ca30bf245e3310.tar.bz2 |
- Patch #215858 by pwolanin, goba, catch et al: localized menu link data getting saved back to the database.
-rw-r--r-- | includes/menu.inc | 1 | ||||
-rw-r--r-- | modules/book/book.module | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 331253868..6c7cd0218 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -629,6 +629,7 @@ function _menu_link_translate(&$item) { $map = array(); $item['href'] = $item['link_path']; $item['title'] = $item['link_title']; + $item['localized_options'] = $item['options']; } else { $map = explode('/', $item['link_path']); diff --git a/modules/book/book.module b/modules/book/book.module index 4f603e8f9..bb4083277 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -622,7 +622,7 @@ function book_build_active_trail($book_link) { if (!isset($trail)) { $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); $curr = array_shift($tree); |