Fix registering the search provider

This commit is contained in:
Raimund Schlüßler 2015-09-06 13:55:13 +02:00
parent e56be5334b
commit 2b0021da7d
2 changed files with 1 additions and 2 deletions

View file

@ -37,6 +37,7 @@ if(\OCP\App::isEnabled('calendar')) {
'name' => \OC::$server->getL10N('tasks')->t('Tasks'),
];
});
\OC::$server->getSearch()->registerProvider('OCA\Tasks\Controller\SearchProvider', array('apps' => array('tasks')));
} else {
$msg = 'Can not enable the Tasks app because the Calendar App is disabled.';
\OCP\Util::addScript('tasks', 'calendar-missing');

View file

@ -179,8 +179,6 @@ class Application extends App {
return $c->query('ServerContainer')->getConfig();
});
\OC::$server->getSearch()->registerProvider('OCA\Tasks\Controller\SearchProvider', array('apps' => array('tasks')));
/**
* Database Layer
*/