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-08 18:05:53 +0300
commit98deb1bd071f9de1d307fd83f7fd8c11f5e426a6 (patch)
tree47f765c4ff2045926ee18e442b9f6a6fab41e3a8 /apps/files_sharing/lib
parent1b52e978e95ece068382ebba9f9fe93c17273dd9 (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;
}