diff options
author | Robin Appelman <robin@icewind.nl> | 2021-08-11 17:24:37 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2021-10-19 11:31:08 +0200 |
commit | 7345de78c582ffcb01c56e2a0c38788eb913d414 (patch) | |
tree | 90fd17e019d9ad6db2d134f99ad5a8480a101692 /apps/files_sharing/lib | |
parent | 4b82d8d20c5222d0f36b792f3a252c81cbacbb59 (diff) | |
download | nextcloud-server-7345de78c582ffcb01c56e2a0c38788eb913d414.tar.gz nextcloud-server-7345de78c582ffcb01c56e2a0c38788eb913d414.zip |
use the correct navigation manager for the shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/AppInfo/Application.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php index 7a432650f12..056d246296f 100644 --- a/apps/files_sharing/lib/AppInfo/Application.php +++ b/apps/files_sharing/lib/AppInfo/Application.php @@ -61,7 +61,6 @@ use OCP\Files\Config\IMountProviderCollection; use OCP\Group\Events\UserAddedEvent; use OCP\IDBConnection; use OCP\IGroup; -use OCP\INavigationManager; use OCP\IUserSession; use OCP\L10N\IFactory; use OCP\Share\Events\ShareCreatedEvent; @@ -148,11 +147,12 @@ class Application extends App implements IBootstrap { }); } - public function setupSharingMenus(INavigationManager $navigationManager, IManager $shareManager, IFactory $l10nFactory, IUserSession $userSession) { + public function setupSharingMenus(IManager $shareManager, IFactory $l10nFactory, IUserSession $userSession) { if (!$shareManager->shareApiEnabled() || !class_exists('\OCA\Files\App')) { return; } + $navigationManager = \OCA\Files\App::getNavigationManager(); // show_Quick_Access stored as string $navigationManager->add(function () use ($shareManager, $l10nFactory, $userSession) { $l = $l10nFactory->get('files_sharing'); |