summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-06 21:35:14 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-06 21:35:14 +0000
commitcd8afc2be1dc62bcad0d691f132aaf37a863237e (patch)
treee1144362accbd77da064b2f16e2a53fb30eced6c /modules/system/system.install
parentccf72e94176942e3033b11335957d66f4f9457e1 (diff)
downloadbrdo-cd8afc2be1dc62bcad0d691f132aaf37a863237e.tar.gz
brdo-cd8afc2be1dc62bcad0d691f132aaf37a863237e.tar.bz2
#196043 by chx: menu items saved in the update but broken on the new system (due to coming from disabled or old modules) were not possible to delete
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 810d1a005..682f76a36 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2327,11 +2327,6 @@ function system_update_6021() {
}
if ($_SESSION['system_update_6021'] >= $_SESSION['system_update_6021_max']) {
- $result = db_query('SELECT * FROM {menu_links} WHERE updated = 1 AND has_children = 0 AND customized = 0 ORDER BY depth DESC');
- // Remove all items that are not customized.
- while ($item = db_fetch_array($result)) {
- _menu_delete_item($item, TRUE);
- }
if (!empty($_SESSION['menu_bogus_menus'])) {
// Remove entries in bogus menus. This is secure because we deleted
// every non-alpanumeric character from the menu name.