Cache classes converted to new shortcut translation usage.

This commit is contained in:
predominant 2010-04-16 01:45:34 +10:00
parent 1e425907b2
commit 41fe51d4b9
3 changed files with 7 additions and 7 deletions

View file

@ -254,7 +254,7 @@ class FileEngine extends CacheEngine {
function __active() {
if ($this->_init && !is_writable($this->settings['path'])) {
$this->_init = false;
trigger_error(sprintf(__('%s is not writable', true), $this->settings['path']), E_USER_WARNING);
trigger_error(sprintf(__('%s is not writable'), $this->settings['path']), E_USER_WARNING);
}
return true;
}

View file

@ -132,7 +132,7 @@ class MemcacheEngine extends CacheEngine {
*/
public function increment($key, $offset = 1) {
if ($this->settings['compress']) {
trigger_error(sprintf(__('Method increment() not implemented for compressed cache in %s', true), get_class($this)), E_USER_ERROR);
trigger_error(sprintf(__('Method increment() not implemented for compressed cache in %s'), get_class($this)), E_USER_ERROR);
}
return $this->__Memcache->increment($key, $offset);
}
@ -147,7 +147,7 @@ class MemcacheEngine extends CacheEngine {
*/
public function decrement($key, $offset = 1) {
if ($this->settings['compress']) {
trigger_error(sprintf(__('Method decrement() not implemented for compressed cache in %s', true), get_class($this)), E_USER_ERROR);
trigger_error(sprintf(__('Method decrement() not implemented for compressed cache in %s'), get_class($this)), E_USER_ERROR);
}
return $this->__Memcache->decrement($key, $offset);
}