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>
This commit is contained in:
parent
1b52e978e9
commit
98deb1bd07
|
@ -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…
Reference in New Issue