summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-28 02:28:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-28 02:28:42 +0000
commit7f05c006bc3aace28cdfddb186757597f4029856 (patch)
tree46c733e4c6f612abab6be131b32ab0dfb48b937e /includes
parent029e7b8828adbbe6c68d5f3809abaca5f704ad3c (diff)
downloadbrdo-7f05c006bc3aace28cdfddb186757597f4029856.tar.gz
brdo-7f05c006bc3aace28cdfddb186757597f4029856.tar.bz2
#839006 by pwolanin: Fixed SPL autoloader should use require_once() to be more robust.
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index babc4f624..f1faa9a42 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2695,7 +2695,7 @@ function _registry_check_code($type, $name = NULL) {
$cache_key = $type[0] . $name;
if (isset($lookup_cache[$cache_key])) {
if ($lookup_cache[$cache_key]) {
- require DRUPAL_ROOT . '/' . $lookup_cache[$cache_key];
+ require_once DRUPAL_ROOT . '/' . $lookup_cache[$cache_key];
}
return (bool) $lookup_cache[$cache_key];
}
@@ -2717,7 +2717,7 @@ function _registry_check_code($type, $name = NULL) {
$lookup_cache[$cache_key] = $file;
if ($file) {
- require DRUPAL_ROOT . '/' . $file;
+ require_once DRUPAL_ROOT . '/' . $file;
return TRUE;
}
else {