summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index cae51cbde..36aa6e566 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -1810,13 +1810,15 @@ function system_update_6021() {
// Items created via the menu module need to be assigned to it.
if ($item['type'] & MENU_CREATED_BY_ADMIN) {
$item['module'] = 'menu';
+ $item['router_path'] = '';
+ $item['updated'] = TRUE;
}
else {
$item['module'] = 'system';
+ $item['router_path'] = $item['path'];
+ $item['updated'] = FALSE;
}
- $item['updated'] = TRUE;
// Save the link.
- $item['router_path'] = '';
menu_link_save($item);
$_SESSION['menu_item_map'][$item['mid']] = array('mlid' => $item['mlid'], 'menu_name' => $item['menu_name']);
}