Commit 84539bd5 authored by Fabianx's avatar Fabianx

Issue #412808 by Berdir, rupertj, beejeebus, sun, PieterDC, scottalan, catch:...

Issue #412808 by Berdir, rupertj, beejeebus, sun, PieterDC, scottalan, catch: Handling of missing files and functions inside the registry
parent 44e1b4f0
......@@ -34,6 +34,7 @@ Drupal 7.50, xxxx-xx-xx (development version)
problems running the script.
- Fixed robots.txt to allow search engines to access CSS, JavaScript and image
files.
- Fixed handling of missing files and functions inside the registry.
Drupal 7.44, 2016-06-15
-----------------------
......
......@@ -3187,7 +3187,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_once DRUPAL_ROOT . '/' . $lookup_cache[$cache_key];
include_once DRUPAL_ROOT . '/' . $lookup_cache[$cache_key];
}
return (bool) $lookup_cache[$cache_key];
}
......@@ -3212,7 +3212,7 @@ function _registry_check_code($type, $name = NULL) {
$lookup_cache[$cache_key] = $file;
if ($file) {
require_once DRUPAL_ROOT . '/' . $file;
include_once DRUPAL_ROOT . '/' . $file;
return TRUE;
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment