Skip to content

Commit 77c87b1

Browse files
authored
Merge pull request #12596 from nextcloud/backport/12448/stable14
[stable14] Load apps that have a dav type set before the dav server plugins
2 parents 55c4d3f + a584406 commit 77c87b1

2 files changed

Lines changed: 2 additions & 3 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ 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
107-
// load app to make sure its classes are available
108-
\OC_App::loadApp($app);
109106
$this->loadSabrePluginsFromInfoXml($this->extractPluginList($info));
110107
$this->loadSabreCollectionsFromInfoXml($this->extractCollectionList($info));
111108
}

0 commit comments

Comments
 (0)