- Expand app information section.
[grauphel.git] / appinfo / app.php
index 3e319dfdc833884baa1945109a8e479f9703423b..d78a9bb2b681c6001b88fa34e229e66563c7c2d6 100755 (executable)
@@ -1,13 +1,13 @@
 <?php
-require_once (__DIR__ . '/../src/grauphel/Autoloader.php');
-grauphel\Autoloader::register();
-
-//OCP\App::registerAdmin( 'apptemplate', 'settings' );
-
-OCP\App::addNavigationEntry( array( 
-       'id' => 'grauphel',
-       'order' => 2342,
-       'href' => OCP\Util::linkTo( 'grauphel', 'index.php' ),
-       'icon' => OCP\Util::imagePath( 'grauphel', 'notes.png' ),
-       'name' => 'Tomboy notes'
-));
+\OC::$server->getNavigationManager()->add(
+    array( 
+        'id' => 'grauphel',
+        'order' => 2342,
+        'href' => \OCP\Util::linkToRoute('grauphel.gui.index'),
+        'icon' => \OCP\Util::imagePath('grauphel', 'app.svg'),
+        'name' => 'Tomboy notes'
+    )
+);
+\OC_Search::registerProvider('OCA\Grauphel\Search\Provider');
+\OCP\Util::addscript('grauphel', 'loader');
+?>