Rename variable in factory to

This commit is contained in:
Aaron Carlino 2018-05-30 16:27:16 +12:00 committed by Damian Mooyman
parent 96701b8ea0
commit 489aca2fc9

6
cache/Cache.php vendored
View File

@ -188,14 +188,14 @@ class SS_Cache {
require_once 'Zend/Cache.php';
$container = Zend_Cache::factory(
$cache = Zend_Cache::factory(
$frontend, $backend[0], $frontendOptions, $backend[1]
);
if (isset($frontendOptions['disable-container']) && $frontendOptions['disable-container']) {
return $container;
return $cache;
}
return Injector::inst()->createWithArgs('CacheProxy', [$container]);
return Injector::inst()->createWithArgs('CacheProxy', [$cache]);
}
}