summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-16 16:28:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-07-16 16:28:57 +0200
commitc0fcc0e45c19b2c7876bd0cd7620a763a8151238 (patch)
tree7ccc68919bee7188ead50199e3eb5d54154eb9b9 /apps/files_sharing/appinfo
parent98cf2bab488af7cf64399bbe43560c9b68d50f47 (diff)
downloadnextcloud-server-c0fcc0e45c19b2c7876bd0cd7620a763a8151238.tar.gz
nextcloud-server-c0fcc0e45c19b2c7876bd0cd7620a763a8151238.zip
Make section "deleted shares" a subsection of "shares"
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/app.php20
1 files changed, 8 insertions, 12 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index 443d9e02017..d50da0285ab 100644
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -85,6 +85,14 @@ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
}
}
+ array_push($sharingSublistArray, [
+ 'id' => 'deletedshares',
+ 'appname' => 'files_sharing',
+ 'script' => 'list.php',
+ 'order' => 19,
+ 'name' => $l->t('Deleted shares'),
+ ]);
+
// show_Quick_Access stored as string
$defaultExpandedState = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_sharing_menu', '0') === '1';
@@ -98,16 +106,4 @@ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
'sublist' => $sharingSublistArray,
'expandedState' => 'show_sharing_menu'
]);
-
-
- \OCA\Files\App::getNavigationManager()->add(function () {
- $l = \OC::$server->getL10N('files_sharing');
- return [
- 'id' => 'deletedshares',
- 'appname' => 'files_sharing',
- 'script' => 'list.php',
- 'order' => 19,
- 'name' => $l->t('Deleted shares'),
- ];
- });
}