aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-22 08:42:25 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-22 08:42:25 +0100
commit24ce4b0f7d5cd63b0d74c5feae05c22fde769e18 (patch)
tree669ba8c02393a6d4707c8bc1440e38ca9b5cc579 /lib
parentaa5bb560101eff66578b3b24a400b0efcf82dcd3 (diff)
downloadnextcloud-server-24ce4b0f7d5cd63b0d74c5feae05c22fde769e18.tar.gz
nextcloud-server-24ce4b0f7d5cd63b0d74c5feae05c22fde769e18.zip
Fix "AutoloadNotAllowedException" when files_sharing is disabled
Diffstat (limited to 'lib')
-rw-r--r--lib/private/activitymanager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/activitymanager.php b/lib/private/activitymanager.php
index 68bb8c13401..9258b7298cc 100644
--- a/lib/private/activitymanager.php
+++ b/lib/private/activitymanager.php
@@ -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;
}