Skip to content
Snippets Groups Projects
Commit ffe57a55 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #23461 from owncloud/activity-491-autoloading-issue-without-sharing

Fix "AutoloadNotAllowedException" when files_sharing is disabled
parents 0cd93a8e 24ce4b0f
No related branches found
No related tags found
No related merge requests found
......@@ -256,11 +256,11 @@ class ActivityManager implements IManager {
foreach ($this->getExtensions() as $c) {
$result = $c->getNotificationTypes($languageCode);
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;
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;
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