This commit is contained in:
bzick 2013-09-06 15:56:37 +04:00
parent d768637eb7
commit d2d54a831a
2 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,10 @@
Changelog Changelog
========= =========
### 1.4.2 (2013-09-06)
- Added check the cache directory to record
### 1.4.1 (2013-09-05) ### 1.4.1 (2013-09-05)
- Fix equating for {case} in {switch} - Fix equating for {case} in {switch}

View File

@ -292,10 +292,14 @@ class Fenom
* Set compile directory * Set compile directory
* *
* @param string $dir directory to store compiled templates in * @param string $dir directory to store compiled templates in
* @throws LogicException
* @return Fenom * @return Fenom
*/ */
public function setCompileDir($dir) public function setCompileDir($dir)
{ {
if(!is_writable($dir)) {
throw new LogicException("Cache directory $dir is not writable");
}
$this->_compile_dir = $dir; $this->_compile_dir = $dir;
return $this; return $this;
} }