MDL-36825 cachestore_file: fixed isready condition check

This commit is contained in:
Sam Hemelryk 2012-11-27 10:16:08 +13:00
parent ae8530e854
commit e4f71b7c8f

View File

@ -123,7 +123,7 @@ class cachestore_file extends cache_store implements cache_is_key_aware, cache_i
}
if ($path !== false && !is_writable($path)) {
$path = false;
debugging('The given file cache store path is not writable. '.$path, DEBUG_DEVELOPER);
debugging('The file cache store path is not writable for `'.$name.'`', DEBUG_DEVELOPER);
}
} else {
$path = make_cache_directory('cachestore_file/'.preg_replace('#[^a-zA-Z0-9\.\-_]+#', '', $name));
@ -151,7 +151,7 @@ class cachestore_file extends cache_store implements cache_is_key_aware, cache_i
* @return bool
*/
public function is_ready() {
return ($this->path !== null);
return $this->isready;
}
/**