diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index 71be5637..a96732ae 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -532,7 +532,7 @@ JS; // Actually create mkdir($filename); - chmod($filename, 02775); + chmod($filename, Filesystem::$file_create_mask); $p->write(); diff --git a/code/ImageEditor.php b/code/ImageEditor.php index 6aff9ecf..303b9111 100644 --- a/code/ImageEditor.php +++ b/code/ImageEditor.php @@ -130,8 +130,7 @@ $tmpDir = '../assets/_tmp'; if(file_exists($tmpDir)) { Filesystem::removeFolder($tmpDir); - mkdir($tmpDir); - chmod($tmpDir, 02775); + mkdir($tmpDir, Filesystem::$folder_create_mask); } } diff --git a/code/StaticExporter.php b/code/StaticExporter.php index 1415eeb4..00941af7 100755 --- a/code/StaticExporter.php +++ b/code/StaticExporter.php @@ -49,7 +49,7 @@ class StaticExporter extends Controller { $folder = '/tmp/static-export/' . project(); if(!project()) $folder .= 'site'; - if(!file_exists($folder)) mkdir($folder, 02775, true); + if(!file_exists($folder)) mkdir($folder, Filesystem::$folder_create_mask, true); $f1 = Director::baseFolder() . '/assets'; $f2 = Director::baseFolder() . '/' . project(); @@ -66,7 +66,7 @@ class StaticExporter extends Controller { // Make the folder if(!file_exists($subfolder)) { - mkdir($subfolder, 02775); + mkdir($subfolder, Filesystem::$folder_create_mask); } // Run the page