#556156 by Rob Loach and doq: Fixed incorrect usage of variable_get(bin).
parent
61d4faab18
commit
bc2b945fbb
|
@ -18,8 +18,8 @@ function _cache_get_object($bin) {
|
|||
// storage of a cache bin mid-request.
|
||||
static $cache_objects, $default_class;
|
||||
if (!isset($cache_objects[$bin])) {
|
||||
$class = variable_get($bin, FALSE);
|
||||
if (empty($class)) {
|
||||
$class = variable_get('cache_class_' . $bin);
|
||||
if (!isset($class)) {
|
||||
$class = variable_get('cache_default_class', 'DrupalDatabaseCache');
|
||||
}
|
||||
$cache_objects[$bin] = new $class($bin);
|
||||
|
|
Loading…
Reference in New Issue