summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index a33807dfd..6947c0150 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -2173,6 +2173,11 @@ function system_update_files_database(&$files, $type) {
}
}
$query->execute();
+
+ // If any module or theme was moved to a new location, we need to reset the
+ // system_list() cache or we will continue to load the old copy, look for
+ // schema updates in the wrong place, etc.
+ system_list_reset();
}
/**