summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-07 14:36:47 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-07 15:04:19 +0100
commitdeca1979aa5a4a6bf67117f109e76e3c8d357acd (patch)
treed8fad7b31c824c83aa09db893e62ae6036e15e78 /apps
parent3b25ccef657fe43d4adba639c443f5d42178a2dd (diff)
downloadnextcloud-server-deca1979aa5a4a6bf67117f109e76e3c8d357acd.tar.gz
nextcloud-server-deca1979aa5a4a6bf67117f109e76e3c8d357acd.zip
Calendar and addressbook migration commands are always available
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/appinfo/register_command.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/dav/appinfo/register_command.php b/apps/dav/appinfo/register_command.php
index 340fbb16e90..570848f0b23 100644
--- a/apps/dav/appinfo/register_command.php
+++ b/apps/dav/appinfo/register_command.php
@@ -29,7 +29,6 @@ use OCA\DAV\Command\SyncSystemAddressBook;
$dbConnection = \OC::$server->getDatabaseConnection();
$userManager = OC::$server->getUserManager();
$groupManager = OC::$server->getGroupManager();
-$config = \OC::$server->getConfig();
$app = new Application();
@@ -38,12 +37,5 @@ $application->add(new CreateCalendar($userManager, $groupManager, $dbConnection)
$application->add(new CreateAddressBook($userManager, $app->getContainer()->query('CardDavBackend')));
$application->add(new SyncSystemAddressBook($app->getSyncService()));
$application->add(new SyncBirthdayCalendar($userManager, $app->getContainer()->query('BirthdayService')));
-
-// the occ tool is *for now* only available in debug mode for developers to test
-if ($config->getSystemValue('debug', false)){
- $app = new \OCA\Dav\AppInfo\Application();
- $migration = $app->getContainer()->query('MigrateAddressbooks');
- $application->add(new MigrateAddressbooks($userManager, $migration));
- $migration = $app->getContainer()->query('MigrateCalendars');
- $application->add(new MigrateCalendars($userManager, $migration));
-}
+$application->add(new MigrateAddressbooks($userManager, $app->getContainer()->query('MigrateAddressbooks')));
+$application->add(new MigrateCalendars($userManager, $app->getContainer()->query('MigrateCalendars')));