summaryrefslogtreecommitdiff
path: root/inc/media.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/media.php')
-rw-r--r--inc/media.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/media.php b/inc/media.php
index e0b1f3747..384ecb580 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -218,7 +218,7 @@ function media_upload($ns,$auth){
return false;
}
// prepare directory
- io_makeFileDir($fn);
+ io_createNamespace($id, 'media');
if(move_uploaded_file($file['tmp_name'], $fn)) {
// Set the correct permission here.
// Always chmod media because they may be saved with different permissions than expected from the php umask.