aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-18 17:52:09 -0800
committerfriendica <info@friendica.com>2015-01-18 17:52:09 -0800
commit89a2012f7f109a775199570853cf0eea1b8aaf35 (patch)
tree07abd3ed1c913c275075c06a14dc49f12163fd5b /include/attach.php
parenta71e57cebf828ddf4e23113293faa359556b644f (diff)
downloadvolse-hubzilla-89a2012f7f109a775199570853cf0eea1b8aaf35.tar.gz
volse-hubzilla-89a2012f7f109a775199570853cf0eea1b8aaf35.tar.bz2
volse-hubzilla-89a2012f7f109a775199570853cf0eea1b8aaf35.zip
remove all hardwired references to 'cloud' in the files interfaces and replace with $a->module. It's OK to leave them in the RedBrowser component because this will remain under /cloud. All the DAV bits need to be abstracted as they will eventually end up under /dav. $a->module will contain the correct string to use.
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index ec175fcb3..dd4f89d09 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -820,7 +820,7 @@ function attach_delete($channel_id, $resource) {
* path to the file in cloud/
*/
function get_cloudpath($arr) {
- $basepath = 'cloud/';
+ $basepath = get_app()->module . '/';
if($arr['uid']) {
$r = q("select channel_address from channel where channel_id = %d limit 1",
@@ -880,7 +880,7 @@ function get_parent_cloudpath($channel_id, $channel_name, $attachHash) {
$parentFullPath = $parentName . '/' . $parentFullPath;
}
} while ($parentHash);
- $parentFullPath = z_root() . '/cloud/' . $channel_name . '/' . $parentFullPath;
+ $parentFullPath = z_root() . '/' . get_app()->module . '/' . $channel_name . '/' . $parentFullPath;
return $parentFullPath;
}