diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-03 18:08:41 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-08 18:05:53 +0300 |
commit | 98deb1bd071f9de1d307fd83f7fd8c11f5e426a6 (patch) | |
tree | 47f765c4ff2045926ee18e442b9f6a6fab41e3a8 /apps/files_sharing/lib | |
parent | 1b52e978e95ece068382ebba9f9fe93c17273dd9 (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.php | 2 |
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; } |