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>
pull/24247/head
Julius Härtl 4 years ago
parent 1b52e978e9
commit 98deb1bd07
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF

@ -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;
}

Loading…
Cancel
Save