summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-11 18:15:01 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-11 18:15:01 +0000
commit5d85d16a752a640016601f36fc51a80e2c56c6ca (patch)
treefd5a88544ca93829c2f38b9e1f4da4e7fef051e9 /modules
parentf2ecddea98896f73c64b5b3cee47c6b9f872966a (diff)
downloadbrdo-5d85d16a752a640016601f36fc51a80e2c56c6ca.tar.gz
brdo-5d85d16a752a640016601f36fc51a80e2c56c6ca.tar.bz2
Oops. Roll-back of #328110. Apologies
Diffstat (limited to 'modules')
-rw-r--r--modules/menu/menu.module8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module
index 656a87a8a..cc2fcb69c 100644
--- a/modules/menu/menu.module
+++ b/modules/menu/menu.module
@@ -154,13 +154,11 @@ function menu_theme() {
*/
function menu_enable() {
menu_rebuild();
- $base_link = db_fetch_array(db_query("SELECT mlid AS plid, menu_name from {menu_links} WHERE link_path = 'admin/build/menu' AND module = 'system'"));
- $base_link['router_path'] = 'admin/build/menu-customize/%';
- $base_link['module'] = 'menu';
+ $link = db_fetch_array(db_query("SELECT mlid AS plid, menu_name from {menu_links} WHERE link_path = 'admin/build/menu' AND module = 'system'"));
+ $link['router_path'] = 'admin/build/menu-customize/%';
+ $link['module'] = 'menu';
$result = db_query("SELECT * FROM {menu_custom}");
while ($menu = db_fetch_array($result)) {
- // $link is passed by reference to menu_link_save(), so we make a copy of $base_link.
- $link = $base_link;
$link['mlid'] = 0;
$link['link_title'] = $menu['title'];
$link['link_path'] = 'admin/build/menu-customize/' . $menu['menu_name'];