#556156 by Rob Loach and doq: Fixed incorrect usage of variable_get(bin).

merge-requests/26/head
Angie Byron 2009-09-01 20:43:21 +00:00
parent 61d4faab18
commit bc2b945fbb
1 changed files with 4 additions and 4 deletions

View File

@ -18,8 +18,8 @@ function _cache_get_object($bin) {
// storage of a cache bin mid-request. // storage of a cache bin mid-request.
static $cache_objects, $default_class; static $cache_objects, $default_class;
if (!isset($cache_objects[$bin])) { if (!isset($cache_objects[$bin])) {
$class = variable_get($bin, FALSE); $class = variable_get('cache_class_' . $bin);
if (empty($class)) { if (!isset($class)) {
$class = variable_get('cache_default_class', 'DrupalDatabaseCache'); $class = variable_get('cache_default_class', 'DrupalDatabaseCache');
} }
$cache_objects[$bin] = new $class($bin); $cache_objects[$bin] = new $class($bin);