summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-11 21:05:13 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-11 21:05:13 +0000
commitcc5b8e6aee945408b64bf90f434922fb454cfc4f (patch)
treea1098aafd5c0400cc26000b3fa7a5aef65a55cfa /includes
parent33f0b0830baa8d584c8cce180fa2d8a0b94e39fd (diff)
downloadbrdo-cc5b8e6aee945408b64bf90f434922fb454cfc4f.tar.gz
brdo-cc5b8e6aee945408b64bf90f434922fb454cfc4f.tar.bz2
- Patch #688704 by Crell, boombatower, andypost, noahb: give DB its own autoload function.
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc1
1 files changed, 1 insertions, 0 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;
}