diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-11 21:05:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-11 21:05:13 +0000 |
commit | cc5b8e6aee945408b64bf90f434922fb454cfc4f (patch) | |
tree | a1098aafd5c0400cc26000b3fa7a5aef65a55cfa | |
parent | 33f0b0830baa8d584c8cce180fa2d8a0b94e39fd (diff) | |
download | brdo-cc5b8e6aee945408b64bf90f434922fb454cfc4f.tar.gz brdo-cc5b8e6aee945408b64bf90f434922fb454cfc4f.tar.bz2 |
- Patch #688704 by Crell, boombatower, andypost, noahb: give DB its own autoload function.
-rw-r--r-- | includes/bootstrap.inc | 1 | ||||
-rw-r--r-- | modules/simpletest/simpletest.pages.inc | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index c5e3bd915..889d0e40a 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -2401,6 +2401,7 @@ function drupal_autoload_class($class) { */ function _registry_check_code($type, $name = NULL) { static $lookup_cache, $cache_update_needed; + if ($type == 'class' && class_exists($name) || $type == 'interface' && interface_exists($name)) { return TRUE; } diff --git a/modules/simpletest/simpletest.pages.inc b/modules/simpletest/simpletest.pages.inc index 61bfa82f4..72d01e4a9 100644 --- a/modules/simpletest/simpletest.pages.inc +++ b/modules/simpletest/simpletest.pages.inc @@ -185,8 +185,8 @@ function simpletest_test_form_submit($form, &$form_state) { // Get list of tests. $tests_list = array(); foreach ($form_state['values'] as $class_name => $value) { - // Since class_exists() will likely trigger an autoload lookup, - // we do the fast check first. + // Since class_exists() will likely trigger an autoload lookup, + // we do the fast check first. if ($value === 1 && class_exists($class_name)) { $tests_list[] = $class_name; } |