Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-12-03 18:08:41 +0300
committerJulius Härtl <jus@bitgrid.net>2020-12-14 13:10:59 +0300
commitff544a288092e32a85211250b20726239135a783 (patch)
treee895e137c7b04b401d2c29d53ad0bc6e2e6d943e /apps/files_sharing/lib
parente97897cfa5210025daeaa160e6337b9501e21e3c (diff)
Do not register share menu in cases where the files app has not been registered yet
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/AppInfo/Application.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index fd71f58f121..078a0a5f59d 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -168,7 +168,7 @@ class Application extends App {
protected function setupSharingMenus() {
$config = \OC::$server->getConfig();
- if ($config->getAppValue('core', 'shareapi_enabled', 'yes') !== 'yes') {
+ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') !== 'yes' || !class_exists('\OCA\Files\App')) {
return;
}