mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00: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
|
// Actually create
|
||||||
mkdir($filename);
|
mkdir($filename);
|
||||||
chmod($filename, 02775);
|
chmod($filename, Filesystem::$file_create_mask);
|
||||||
|
|
||||||
$p->write();
|
$p->write();
|
||||||
|
|
||||||
|
@ -130,8 +130,7 @@
|
|||||||
$tmpDir = '../assets/_tmp';
|
$tmpDir = '../assets/_tmp';
|
||||||
if(file_exists($tmpDir)) {
|
if(file_exists($tmpDir)) {
|
||||||
Filesystem::removeFolder($tmpDir);
|
Filesystem::removeFolder($tmpDir);
|
||||||
mkdir($tmpDir);
|
mkdir($tmpDir, Filesystem::$folder_create_mask);
|
||||||
chmod($tmpDir, 02775);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ class StaticExporter extends Controller {
|
|||||||
|
|
||||||
$folder = '/tmp/static-export/' . project();
|
$folder = '/tmp/static-export/' . project();
|
||||||
if(!project()) $folder .= 'site';
|
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';
|
$f1 = Director::baseFolder() . '/assets';
|
||||||
$f2 = Director::baseFolder() . '/' . project();
|
$f2 = Director::baseFolder() . '/' . project();
|
||||||
@ -66,7 +66,7 @@ class StaticExporter extends Controller {
|
|||||||
|
|
||||||
// Make the folder
|
// Make the folder
|
||||||
if(!file_exists($subfolder)) {
|
if(!file_exists($subfolder)) {
|
||||||
mkdir($subfolder, 02775);
|
mkdir($subfolder, Filesystem::$folder_create_mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run the page
|
// Run the page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user