summaryrefslogtreecommitdiff
path: root/includes/install.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-25 14:54:49 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-25 14:54:49 +0000
commitf15438cc9af8cae43bc976b36d64c314dc917a94 (patch)
tree13bb3fdb690be8b9540f9b254e69b92ee8f2ee89 /includes/install.inc
parentd734f2f25d4866dc56c65766a8e196eac8a63047 (diff)
downloadbrdo-f15438cc9af8cae43bc976b36d64c314dc917a94.tar.gz
brdo-f15438cc9af8cae43bc976b36d64c314dc917a94.tar.bz2
- Patch #521838 by jrchamp: (temporary) fix for drupal_get_schema_versions().
Diffstat (limited to 'includes/install.inc')
-rw-r--r--includes/install.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/install.inc b/includes/install.inc
index 1fb13883b..2e1f256d8 100644
--- a/includes/install.inc
+++ b/includes/install.inc
@@ -93,12 +93,10 @@ function drupal_load_updates() {
*/
function drupal_get_schema_versions($module) {
$updates = &drupal_static(__FUNCTION__, NULL);
- if (!isset($updates)) {
+ if (!isset($updates[$module])) {
$updates = array();
// Prepare regular expression to match all possible defined hook_update_N().
- $modules = db_query("SELECT name FROM {system} WHERE type = 'module'")
- ->fetchCol();
- $regexp = '/^(?P<module>' . implode('|', $modules) . ')_update_(?P<version>\d+)$/';
+ $regexp = '/^(?P<module>.+)_update_(?P<version>\d+)$/';
$functions = get_defined_functions();
// Narrow this down to functions ending with an integer, since all
// hook_update_N() functions end this way, and there are other