aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-12-14 20:22:13 +0000
committerMario <mario@mariovavti.com>2020-12-14 20:22:13 +0000
commit78c0926a64dcb40656a979178f9332b0845def18 (patch)
tree6ae6c35e40cea78a50863b86a77144c2c76fa08f /Zotlabs/Storage
parent4693069a0618775167fd5c5b8c91b80f8a832da0 (diff)
downloadvolse-hubzilla-78c0926a64dcb40656a979178f9332b0845def18.tar.gz
volse-hubzilla-78c0926a64dcb40656a979178f9332b0845def18.tar.bz2
volse-hubzilla-78c0926a64dcb40656a979178f9332b0845def18.zip
improve when to show link to parent path
Diffstat (limited to 'Zotlabs/Storage')
-rw-r--r--Zotlabs/Storage/Browser.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/Zotlabs/Storage/Browser.php b/Zotlabs/Storage/Browser.php
index 3d99bf659..21190d1bd 100644
--- a/Zotlabs/Storage/Browser.php
+++ b/Zotlabs/Storage/Browser.php
@@ -101,18 +101,16 @@ class Browser extends DAV\Browser\Plugin {
$folder_list = attach_folder_select_list($channel_id);
- $parent_path = '';
-
$siteroot_disabled = get_config('system', 'cloud_disable_siteroot');
+ $is_root_folder = (($path === 'cloud/' . $nick) ? true : false);
- // Hide parent folder if in /cloud or category view
- if (($channel_id && ! $cat) || ($siteroot_disabled && $path !== 'cloud')) {
+ $parent_path = '';
+
+ if ($channel_id && ! $cat && !($siteroot_disabled && $is_root_folder)) {
list($parent_uri) = \Sabre\Uri\split($path);
$parent_path = \Sabre\HTTP\encodePath($this->server->getBaseUri() . $parent_uri);
}
- $is_root_folder = (($path === 'cloud/' . $nick) ? true : false);
-
$f = [];
foreach ($files as $file) {