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
e97897cfa5
commit
ff544a2880
|
@ -168,7 +168,7 @@ class Application extends App {
|
||||||
protected function setupSharingMenus() {
|
protected function setupSharingMenus() {
|
||||||
$config = \OC::$server->getConfig();
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue