FEATURE Using consistent umask static Filesystem::$folder_create_mask for mkdir()-calls

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@43870 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-10-25 23:07:24 +00:00
parent 5b0cbe3da3
commit 8d2931dda4
3 changed files with 4 additions and 5 deletions

View File

@ -532,7 +532,7 @@ JS;
// Actually create
mkdir($filename);
chmod($filename, 02775);
chmod($filename, Filesystem::$file_create_mask);
$p->write();

View File

@ -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);
}
}

View File

@ -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