diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-07-13 14:42:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-07-13 14:42:54 +0000 |
commit | ca2d228505acbf9d7d08dc80b0cb41ab146a3c05 (patch) | |
tree | 8c36dcc65e8e2e8adee45e46e9bcbac205cecc08 /update.php | |
parent | 1c75a210bdf85afeee33952fd50c1951999fecb4 (diff) | |
download | brdo-ca2d228505acbf9d7d08dc80b0cb41ab146a3c05.tar.gz brdo-ca2d228505acbf9d7d08dc80b0cb41ab146a3c05.tar.bz2 |
- Patch #73456 by Jaza, hunkmonk: fixed broken module paths.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/update.php b/update.php index 32d81be85..de9d03b62 100644 --- a/update.php +++ b/update.php @@ -561,9 +561,15 @@ function update_access_denied_page() { </ol>'; } -// This code may be removed later. It is part of the Drupal 4.5 to 4.7 migration. +// This code may be removed later. It is part of the Drupal 4.5 to 4.8 migration. function update_fix_system_table() { drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE); + $core_modules = array('aggregator', 'archive', 'block', 'blog', 'blogapi', 'book', 'comment', 'contact', 'drupal', 'filter', 'forum', 'help', 'legacy', 'locale', 'menu', 'node', 'page', 'path', 'ping', 'poll', 'profile', 'search', 'statistics', 'story', 'system', 'taxonomy', 'throttle', 'tracker', 'upload', 'user', 'watchdog'); + foreach ($core_modules as $module) { + $old_path = "modules/$module.module"; + $new_path = "modules/$module/$module.module"; + db_query("UPDATE {system} SET filename = '%s' WHERE filename = '%s'", $new_path, $old_path); + } $row = db_fetch_object(db_query_range('SELECT * FROM {system}', 0, 1)); if (!isset($row->weight)) { $ret = array(); |