Do not use OCP\Util anymore - API not avaiable in Nextcloud 14.
[grauphel.git] / appinfo / app.php
index 3da4f00e5fd2ce8204dcaec2a34974e4cadee6f7..1fb5551b75e37cf535338fe24179c1a6678f6827 100755 (executable)
@@ -1,13 +1,17 @@
 <?php
-//OCP\App::registerAdmin( 'apptemplate', 'settings' );
-
-OCP\App::addNavigationEntry(
+\OC::$server->getNavigationManager()->add(
     array( 
         'id' => 'grauphel',
         'order' => 2342,
-        'href' => OCP\Util::linkTo('grauphel', 'index.php'),
-        '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');
 ?>