Fix for empty file when writing cache

This commit is contained in:
Andy Miller
2015-12-18 15:09:21 -07:00
parent 984e0455b1
commit 425831a7ae

View File

@@ -20,6 +20,10 @@ trait WriteCacheFileTrait
*/
protected function writeCacheFile($file, $content)
{
if (empty($file)) {
return;
}
if (!isset(self::$umask)) {
self::$umask = self::getGrav()['config']->get('system.twig.umask_fix', false);
}