diff options
-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; } |