X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/592c24c61edb8e50a5056f5ac265052b5c99d81b..4c85b6387c7612e40ad94960225e55533ae85011:/appinfo/app.php?ds=sidebyside diff --git a/appinfo/app.php b/appinfo/app.php index d78a9bb..1fb5551 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -3,11 +3,15 @@ array( 'id' => 'grauphel', 'order' => 2342, - 'href' => \OCP\Util::linkToRoute('grauphel.gui.index'), - 'icon' => \OCP\Util::imagePath('grauphel', 'app.svg'), + 'href' => \OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.index'), + 'icon' => \OC::$server->getURLGenerator()->imagePath('grauphel', 'app.svg'), 'name' => 'Tomboy notes' ) ); -\OC_Search::registerProvider('OCA\Grauphel\Search\Provider'); + +\OC::$server->getSearch()->registerProvider( + 'OCA\Grauphel\Search\Provider', array('apps' => array('grauphel')) +); + \OCP\Util::addscript('grauphel', 'loader'); ?>