mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
1.4.2
This commit is contained in:
parent
d768637eb7
commit
d2d54a831a
@ -1,6 +1,10 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
### 1.4.2 (2013-09-06)
|
||||
|
||||
- Added check the cache directory to record
|
||||
|
||||
### 1.4.1 (2013-09-05)
|
||||
|
||||
- Fix equating for {case} in {switch}
|
||||
|
@ -292,10 +292,14 @@ class Fenom
|
||||
* Set compile directory
|
||||
*
|
||||
* @param string $dir directory to store compiled templates in
|
||||
* @throws LogicException
|
||||
* @return Fenom
|
||||
*/
|
||||
public function setCompileDir($dir)
|
||||
{
|
||||
if(!is_writable($dir)) {
|
||||
throw new LogicException("Cache directory $dir is not writable");
|
||||
}
|
||||
$this->_compile_dir = $dir;
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user