Implement note search
[grauphel.git] / appinfo / app.php
index 3e319dfdc833884baa1945109a8e479f9703423b..c80d95bf220e05523aebac5b4e098c1d7a633c98 100755 (executable)
@@ -1,13 +1,15 @@
 <?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'
-));
+OCP\App::addNavigationEntry(
+    array( 
+        'id' => 'grauphel',
+        'order' => 2342,
+        'href' => \OCP\Util::linkToRoute('grauphel.gui.index'),
+        'icon' => OCP\Util::imagePath('grauphel', 'notes.png'),
+        'name' => 'Tomboy notes'
+    )
+);
+\OC_Search::registerProvider('OCA\Grauphel\Search\Provider');
+\OCP\Util::addscript('grauphel', 'loader');
+?>