]> source.dussan.org Git - nextcloud-server.git/commitdiff
Load apps that have a dav type set before the dav server plugins 12596/head
authorJulius Härtl <jus@bitgrid.net>
Wed, 14 Nov 2018 09:37:47 +0000 (10:37 +0100)
committerBackportbot <backportbot-noreply@rullzer.com>
Thu, 22 Nov 2018 16:26:14 +0000 (16:26 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/dav/appinfo/app.php
apps/dav/lib/AppInfo/PluginManager.php

index 089aaeb6c784106e23b883d686b54310b7a6a1c0..ad696c841476195781190cf92c4369c15d9dd9ba 100644 (file)
@@ -27,6 +27,8 @@ use OCA\DAV\AppInfo\Application;
 use OCA\DAV\CardDAV\CardDavBackend;
 use Symfony\Component\EventDispatcher\GenericEvent;
 
+\OC_App::loadApps(['dav']);
+
 $app = new Application();
 $app->registerHooks();
 
index 59b03f54fd02ca285ebee9b8008ac7e1302b6ae3..a5c397326b2d642a63644d1ef5bfbf16ea5ee6aa 100644 (file)
@@ -103,9 +103,6 @@ class PluginManager {
                        if (!isset($info['types']) || !in_array('dav', $info['types'], true)) {
                                continue;
                        }
-                       // FIXME: switch to public API once available
-                       // load app to make sure its classes are available
-                       \OC_App::loadApp($app);
                        $this->loadSabrePluginsFromInfoXml($this->extractPluginList($info));
                        $this->loadSabreCollectionsFromInfoXml($this->extractCollectionList($info));
                }