[Templating] fixed bug when the cache dir does not exist
This commit is contained in:
parent
44c4c58268
commit
5b619bfa2d
@ -41,6 +41,11 @@ class CacheLoader extends Loader
|
||||
$this->loader = $loader;
|
||||
$this->dir = $dir;
|
||||
|
||||
if (!file_exists($dir))
|
||||
{
|
||||
mkdir($dir, 0777, true);
|
||||
}
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user