diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-05-07 11:59:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-05-07 11:59:40 +0000 |
commit | 04b92ccfd83e2cdfa40d5c8202b3b7d8dd94203a (patch) | |
tree | 7543e44ab2b5010d4d6ac71b81bc68f82313151d | |
parent | a0caf140529ac5f378b890bff5ff959733babd65 (diff) | |
download | brdo-04b92ccfd83e2cdfa40d5c8202b3b7d8dd94203a.tar.gz brdo-04b92ccfd83e2cdfa40d5c8202b3b7d8dd94203a.tar.bz2 |
- Patch #136049 by lyricnz: small performance improvement - removed some redundant fields.
-rw-r--r-- | includes/module.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/module.inc b/includes/module.inc index 619bf3370..5ff8f5575 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -58,10 +58,10 @@ function module_list($refresh = FALSE, $bootstrap = TRUE, $sort = FALSE, $fixed_ } else { if ($bootstrap) { - $result = db_query("SELECT name, filename, throttle, bootstrap FROM {system} WHERE type = 'module' AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC"); + $result = db_query("SELECT name, filename, throttle FROM {system} WHERE type = 'module' AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC"); } else { - $result = db_query("SELECT name, filename, throttle, bootstrap FROM {system} WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC"); + $result = db_query("SELECT name, filename, throttle FROM {system} WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC"); } while ($module = db_fetch_object($result)) { if (file_exists($module->filename)) { @@ -204,7 +204,7 @@ function module_load_install($module) { function module_enable($module_list) { $invoke_modules = array(); foreach ($module_list as $module) { - $existing = db_fetch_object(db_query("SELECT name, status FROM {system} WHERE type = 'module' AND name = '%s'", $module)); + $existing = db_fetch_object(db_query("SELECT status FROM {system} WHERE type = 'module' AND name = '%s'", $module)); if ($existing->status === '0') { module_load_install($module); db_query("UPDATE {system} SET status = 1, throttle = 0 WHERE type = 'module' AND name = '%s'", $module); |