Skip to content
Snippets Groups Projects
Commit 24ce4b0f authored by Joas Schilling's avatar Joas Schilling
Browse files

Fix "AutoloadNotAllowedException" when files_sharing is disabled

parent aa5bb560
No related branches found
No related tags found
No related merge requests found
...@@ -256,11 +256,11 @@ class ActivityManager implements IManager { ...@@ -256,11 +256,11 @@ class ActivityManager implements IManager {
foreach ($this->getExtensions() as $c) { foreach ($this->getExtensions() as $c) {
$result = $c->getNotificationTypes($languageCode); $result = $c->getNotificationTypes($languageCode);
if (is_array($result)) { if (is_array($result)) {
if (class_exists('\OCA\Files\Activity') && $c instanceof \OCA\Files\Activity) { if (class_exists('\OCA\Files\Activity', false) && $c instanceof \OCA\Files\Activity) {
$filesNotificationTypes = $result; $filesNotificationTypes = $result;
continue; continue;
} }
if (class_exists('\OCA\Files_Sharing\Activity') && $c instanceof \OCA\Files_Sharing\Activity) { if (class_exists('\OCA\Files_Sharing\Activity', false) && $c instanceof \OCA\Files_Sharing\Activity) {
$sharingNotificationTypes = $result; $sharingNotificationTypes = $result;
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment