aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2016-08-12 20:43:05 +0200
committerzottel <github@zottel.net>2016-08-12 20:43:05 +0200
commite4bdc92834be9f308ef0f6a253c81f90d1e7537b (patch)
treee38f2f59ab212ea9403770427b8e4c36aa4aca96 /Zotlabs/Storage
parent8706cbe1c413ed8fcfb7dcb35c7b319d2d1116bb (diff)
parentebbe18a426e6959b6bd8bdf23f36902b1a21db1f (diff)
downloadvolse-hubzilla-e4bdc92834be9f308ef0f6a253c81f90d1e7537b.tar.gz
volse-hubzilla-e4bdc92834be9f308ef0f6a253c81f90d1e7537b.tar.bz2
volse-hubzilla-e4bdc92834be9f308ef0f6a253c81f90d1e7537b.zip
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'Zotlabs/Storage')
-rw-r--r--Zotlabs/Storage/Browser.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Storage/Browser.php b/Zotlabs/Storage/Browser.php
index e72c4fb62..948f7c733 100644
--- a/Zotlabs/Storage/Browser.php
+++ b/Zotlabs/Storage/Browser.php
@@ -316,6 +316,8 @@ class Browser extends DAV\Browser\Plugin {
$quota['desc'] = $quotaDesc;
$quota['warning'] = ((($limit) && ((round($used / $limit, 1) * 100) >= 90)) ? t('WARNING:') : ''); // 10485760 bytes = 100MB
+ $path = trim(str_replace('cloud/' . $this->auth->owner_nick, '', $path),'/');
+
$output .= replace_macros(get_markup_template('cloud_actionspanel.tpl'), array(
'$folder_header' => t('Create new folder'),
'$folder_submit' => t('Create'),
@@ -330,7 +332,8 @@ class Browser extends DAV\Browser\Plugin {
'$deny_gid' => acl2json($channel_acl['deny_gid']),
'$lockstate' => $lockstate,
'$return_url' => \App::$cmd,
- '$path' => trim(str_replace('cloud/' . $this->auth->owner_nick, '', $path),'/'),
+ '$path' => $path,
+ '$folder' => find_folder_hash_by_path($this->auth->owner_id, $path),
'$dragdroptext' => t('Drop files here to immediately upload')
));
}