Skip to content

Commit 7ade85a

Browse files
committed
Load apps that have a dav type set before the dav server plugins
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent fef5189 commit 7ade85a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/dav/appinfo/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
use OCA\DAV\CardDAV\CardDavBackend;
2828
use Symfony\Component\EventDispatcher\GenericEvent;
2929

30+
\OC_App::loadApps(['dav']);
31+
3032
$app = new Application();
3133
$app->registerHooks();
3234

apps/dav/lib/AppInfo/PluginManager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ private function populate() {
103103
if (!isset($info['types']) || !in_array('dav', $info['types'], true)) {
104104
continue;
105105
}
106-
// FIXME: switch to public API once available
107106
// load app to make sure its classes are available
108-
\OC_App::loadApp($app);
109107
$this->loadSabrePluginsFromInfoXml($this->extractPluginList($info));
110108
$this->loadSabreCollectionsFromInfoXml($this->extractCollectionList($info));
111109
}

0 commit comments

Comments
 (0)