X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/48f040f9aac805fb80df4d4bde649c5e36353261..HEAD:/appinfo/app.php diff --git a/appinfo/app.php b/appinfo/app.php index b3c2b46..1fb5551 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -1,13 +1,17 @@ getNavigationManager()->add( array( 'id' => 'grauphel', 'order' => 2342, - 'href' => \OCP\Util::linkToRoute('grauphel.gui.index'), - 'icon' => OCP\Util::imagePath('grauphel', 'notes.png'), + 'href' => \OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.index'), + 'icon' => \OC::$server->getURLGenerator()->imagePath('grauphel', 'app.svg'), 'name' => 'Tomboy notes' ) ); + +\OC::$server->getSearch()->registerProvider( + 'OCA\Grauphel\Search\Provider', array('apps' => array('grauphel')) +); + +\OCP\Util::addscript('grauphel', 'loader'); ?>