diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-06 16:47:19 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-06 16:47:19 +0000 |
commit | be9f7bf206b0507129af9b5e527216d37d881972 (patch) | |
tree | dc4920d866c120d72d1a573cdb1f3a82119c684f | |
parent | 8c809ebc3e28f75b9db62f7a790f6588526c5840 (diff) | |
download | brdo-be9f7bf206b0507129af9b5e527216d37d881972.tar.gz brdo-be9f7bf206b0507129af9b5e527216d37d881972.tar.bz2 |
#206510 by pwolanin, chx: menu title arguments were not properly stored when they were empty
-rw-r--r-- | includes/menu.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index ece43f6b8..378855ab3 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -2237,6 +2237,7 @@ function _menu_router_build($callbacks) { $item['include file'] = $file_path .'/'. $item['file']; } + $title_arguments = $item['title arguments'] ? serialize($item['title arguments']) : ''; db_query("INSERT INTO {menu_router} (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, fit, @@ -2251,7 +2252,7 @@ function _menu_router_build($callbacks) { $path, $item['load_functions'], $item['to_arg_functions'], $item['access callback'], serialize($item['access arguments']), $item['page callback'], serialize($item['page arguments']), $item['_fit'], $item['_number_parts'], $item['tab_parent'], $item['tab_root'], - $item['title'], $item['title callback'], serialize($item['title arguments']), + $item['title'], $item['title callback'], $title_arguments, $item['type'], $item['block callback'], $item['description'], $item['position'], $item['weight'], $item['include file']); } // Sort the masks so they are in order of descending fit, and store them. |