aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-16 01:07:00 -0700
committerfriendica <info@friendica.com>2014-07-16 01:07:00 -0700
commit3a31ddea2b516cebe60c6ac096516db8df101fd0 (patch)
tree55ff5e01ec3035b0a8ade9e0731bd7d1b51e7794 /mod
parent0435a08f3bafe47e0fe0cda6e698f93a5fab26e6 (diff)
downloadvolse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.tar.gz
volse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.tar.bz2
volse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.zip
provide os_mkdir to workaround permission issues with php mkdir
Diffstat (limited to 'mod')
-rw-r--r--mod/cloud.php2
-rwxr-xr-xmod/setup.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/cloud.php b/mod/cloud.php
index 25773066a..3734f769a 100644
--- a/mod/cloud.php
+++ b/mod/cloud.php
@@ -37,7 +37,7 @@ function cloud_init(&$a) {
require_once('include/reddav.php');
if(! is_dir('store'))
- mkdir('store',STORAGE_DEFAULT_PERMISSIONS,false);
+ os_mkdir('store',STORAGE_DEFAULT_PERMISSIONS,false);
$which = null;
if(argc() > 1)
diff --git a/mod/setup.php b/mod/setup.php
index 7932d67af..ad5394335 100755
--- a/mod/setup.php
+++ b/mod/setup.php
@@ -527,7 +527,7 @@ function check_store(&$checks) {
$status = true;
$help = "";
- @mkdir('store',STORAGE_DEFAULT_PERMISSIONS);
+ @os_mkdir('store',STORAGE_DEFAULT_PERMISSIONS);
if( !is_writable('store') ) {