Commit 910143c0 authored by drumm's avatar drumm
Browse files

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

parent 9cf71580
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment