diff options
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php index d339ce6f9..dbc489a2d 100644 --- a/include/attach.php +++ b/include/attach.php @@ -329,6 +329,7 @@ function attach_store($channel,$observer_hash,$options = '',$arr = null) { } $limit = service_class_fetch($channel_id,'attach_upload_limit'); + if($limit !== false) { $r = q("select sum(filesize) as total from attach where aid = %d ", intval($channel['channel_account_id']) @@ -623,7 +624,7 @@ function attach_mkdir($channel,$observer_hash,$arr = null) { ); if($r) { - if(mkdir($path,STORAGE_DEFAULT_PERMISSIONS)) { + if(mkdir($path,STORAGE_DEFAULT_PERMISSIONS,true)) { $ret['success'] = true; $ret['data'] = $arr; } @@ -735,7 +736,7 @@ function attach_delete($channel_id,$resource) { function get_cloudpath($arr) { - $basepath = 'store/'; + $basepath = 'cloud/'; if($arr['uid']) { $r = q("select channel_address from channel where channel_id = %d limit 1", intval($arr['uid']) |