summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/Cache.php
diff options
context:
space:
mode:
authorTyler Brownell <tyler@bluefoxstudio.ca>2015-04-23 21:11:03 +0200
committerTyler Brownell <tyler@bluefoxstudio.ca>2015-04-23 21:11:03 +0200
commit24812132d7aa039bbdca1f150a850dc776ce7bd7 (patch)
tree8b16d631de3e32a6454b79651c73e76022820947 /system/libraries/Cache/Cache.php
parentd3913f591353d17954ee900f2524f24c1833af85 (diff)
Updates the fallback driver variable name to match the config option name.
Diffstat (limited to 'system/libraries/Cache/Cache.php')
-rw-r--r--system/libraries/Cache/Cache.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/libraries/Cache/Cache.php b/system/libraries/Cache/Cache.php
index 40ac70103..fd49f33ab 100644
--- a/system/libraries/Cache/Cache.php
+++ b/system/libraries/Cache/Cache.php
@@ -81,7 +81,7 @@ class CI_Cache extends CI_Driver_Library {
*
* @var string
*/
- protected $_backup_driver = 'dummy';
+ protected $_backup = 'dummy';
/**
* Cache key prefix
@@ -119,23 +119,23 @@ class CI_Cache extends CI_Driver_Library {
if (isset($config['backup']) && in_array($config['backup'], $this->valid_drivers))
{
- $this->_backup_driver = $config['backup'];
+ $this->_backup = $config['backup'];
}
// If the specified adapter isn't available, check the backup.
if ( ! $this->is_supported($this->_adapter))
{
- if ( ! $this->is_supported($this->_backup_driver))
+ if ( ! $this->is_supported($this->_backup))
{
// Backup isn't supported either. Default to 'Dummy' driver.
- log_message('error', 'Cache adapter "'.$this->_adapter.'" and backup "'.$this->_backup_driver.'" are both unavailable. Cache is now using "Dummy" adapter.');
+ log_message('error', 'Cache adapter "'.$this->_adapter.'" and backup "'.$this->_backup.'" are both unavailable. Cache is now using "Dummy" adapter.');
$this->_adapter = 'dummy';
}
else
{
// Backup is supported. Set it to primary.
- log_message('debug', 'Cache adapter "'.$this->_adapter.'" is unavailable. Falling back to "'.$this->_backup_driver.'" backup adapter.');
- $this->_adapter = $this->_backup_driver;
+ log_message('debug', 'Cache adapter "'.$this->_adapter.'" is unavailable. Falling back to "'.$this->_backup.'" backup adapter.');
+ $this->_adapter = $this->_backup;
}
}
}