#77733 by Ralf Stamm. The primary menu needs an mid of 2.

5.x
Neil Drumm 2006-09-01 06:35:37 +00:00
parent 9cf7158058
commit 910143c003
1 changed files with 8 additions and 1 deletions

View File

@ -896,7 +896,7 @@ function system_install() {
db_query("INSERT INTO {variable} (name, value) VALUES ('node_options_forum', '%s')", 'a:1:{i:0;s:6:"status";}');
db_query("INSERT INTO {menu} (pid, path, title, description, weight, type) VALUES (0, '', 'Primary links', '', 0, 115)");
db_query("INSERT INTO {menu} (mid, pid, path, title, description, weight, type) VALUES (2, 0, '', 'Primary links', '', 0, 115)");
db_query("INSERT INTO {variable} VALUES ('menu_primary_menu', 'i:2;')");
db_query("INSERT INTO {variable} VALUES ('menu_secondary_menu', 'i:2;')");
}
@ -3245,6 +3245,13 @@ function system_update_1010() {
return $ret;
}
function system_update_1011() {
$ret = array();
$ret[] = update_sql('UPDATE {menu} SET mid = 2 WHERE mid = 0');
cache_clear_all();
return $ret;
}
/**
* @} End of "defgroup updates-4.7-to-x.x"
* The next series of updates should start at 2000.