mirror of
https://github.com/getgrav/grav.git
synced 2026-02-03 13:20:08 +01:00
Fix for empty file when writing cache
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user