mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
5b0cbe3da3
commit
8d2931dda4
@ -532,7 +532,7 @@ JS;
|
||||
|
||||
// Actually create
|
||||
mkdir($filename);
|
||||
chmod($filename, 02775);
|
||||
chmod($filename, Filesystem::$file_create_mask);
|
||||
|
||||
$p->write();
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user