From 6d1520f81573f63d098aa52c66d7b6d534fc3315 Mon Sep 17 00:00:00 2001 From: Roel Zeilstra Date: Tue, 6 Dec 2016 11:34:45 +0100 Subject: [PATCH] Adding Chmod Prevent files from getting wrong permission and not being loaded in sites. --- core/components/modxminify/assetic/src/Assetic/AssetWriter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/components/modxminify/assetic/src/Assetic/AssetWriter.php b/core/components/modxminify/assetic/src/Assetic/AssetWriter.php index 4f010a4..9d508ac 100644 --- a/core/components/modxminify/assetic/src/Assetic/AssetWriter.php +++ b/core/components/modxminify/assetic/src/Assetic/AssetWriter.php @@ -79,6 +79,7 @@ protected static function write($path, $contents) if (false === @file_put_contents($path, $contents)) { throw new \RuntimeException('Unable to write file '.$path); } + chmod($path, 0644); } /**