Fix registering the search provider
This commit is contained in:
parent
e56be5334b
commit
2b0021da7d
2 changed files with 1 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue