Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b1938ce0
Commit
b1938ce0
authored
Jul 19, 2009
by
Angie Byron
Browse files
#523358
by catch: Speed up drupal_function_exists().
parent
48e41d31
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
b1938ce0
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment