mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
Fix #86 by altering the default permissions on mkdir.
This commit is contained in:
parent
eaed20d498
commit
5dea574825
3 changed files with 5 additions and 3 deletions
3
build/index.php
Normal file → Executable file
3
build/index.php
Normal file → Executable file
|
@ -3602,6 +3602,7 @@ register_module([
|
|||
*
|
||||
* @apiError UnsufficientPermissionError You don't currently have sufficient permissions to save an edit.
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* ___ __ ___ _____
|
||||
|
@ -3646,7 +3647,7 @@ register_module([
|
|||
if(!is_dir(dirname("$env->storage_prefix$env->page.md")))
|
||||
{
|
||||
// Recursively create the directory if needed
|
||||
mkdir(dirname("$env->storage_prefix$env->page.md"), null, true);
|
||||
mkdir(dirname("$env->storage_prefix$env->page.md"), 0775, true);
|
||||
}
|
||||
|
||||
// Read in the new page content
|
||||
|
|
2
module_index.json
Normal file → Executable file
2
module_index.json
Normal file → Executable file
|
@ -113,7 +113,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Allows you to edit pages by adding the edit and save actions. You should probably include this one.",
|
||||
"id": "page-edit",
|
||||
"lastupdate": 1466582736,
|
||||
"lastupdate": 1471525437,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
3
modules/page-edit.php
Normal file → Executable file
3
modules/page-edit.php
Normal file → Executable file
|
@ -106,6 +106,7 @@ register_module([
|
|||
*
|
||||
* @apiError UnsufficientPermissionError You don't currently have sufficient permissions to save an edit.
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* ___ __ ___ _____
|
||||
|
@ -150,7 +151,7 @@ register_module([
|
|||
if(!is_dir(dirname("$env->storage_prefix$env->page.md")))
|
||||
{
|
||||
// Recursively create the directory if needed
|
||||
mkdir(dirname("$env->storage_prefix$env->page.md"), null, true);
|
||||
mkdir(dirname("$env->storage_prefix$env->page.md"), 0775, true);
|
||||
}
|
||||
|
||||
// Read in the new page content
|
||||
|
|
Loading…
Reference in a new issue