diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-23 21:14:09 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-23 21:14:09 +0000 |
commit | 2a6bd6033de46b447e9c58144668790d45a07896 (patch) | |
tree | c0c0d9d46f388684a579284722d5ac2d44dbf6dd /includes/module.inc | |
parent | 708f3b970fe756efb7395e54dff488fb8016b4dc (diff) | |
download | brdo-2a6bd6033de46b447e9c58144668790d45a07896.tar.gz brdo-2a6bd6033de46b447e9c58144668790d45a07896.tar.bz2 |
#528984 by catch: Remove duplicate check for Drupal maintenance mode.
Diffstat (limited to 'includes/module.inc')
-rw-r--r-- | includes/module.inc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/module.inc b/includes/module.inc index 4b506a0d3..4d25994f7 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -324,12 +324,7 @@ function module_disable($module_list) { */ function module_hook($module, $hook) { $function = $module . '_' . $hook; - if (defined('MAINTENANCE_MODE')) { - return function_exists($function); - } - else { - return drupal_function_exists($function); - } + return function_exists($function) || drupal_function_exists($function); } /** |