From f15438cc9af8cae43bc976b36d64c314dc917a94 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 25 Sep 2009 14:54:49 +0000 Subject: - Patch #521838 by jrchamp: (temporary) fix for drupal_get_schema_versions(). --- includes/install.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'includes') 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' . implode('|', $modules) . ')_update_(?P\d+)$/'; + $regexp = '/^(?P.+)_update_(?P\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 -- cgit v1.2.3