Commit b1938ce0 authored by webchick's avatar webchick
Browse files

#523358 by catch: Speed up drupal_function_exists().

parent 48e41d31
......@@ -1663,8 +1663,13 @@ function drupal_get_schema($table = NULL, $rebuild = FALSE) {
*/
function drupal_function_exists($function) {
static $checked = array();
static $maintenance;
if (defined('MAINTENANCE_MODE')) {
if (!isset($maintenance)) {
$maintenance = defined('MAINTENANCE_MODE');
}
if ($maintenance) {
return function_exists($function);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment