git.cweiske.de
/
grauphel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update website from build script
[grauphel.git]
/
appinfo
/
app.php
diff --git
a/appinfo/app.php
b/appinfo/app.php
index 3e319dfdc833884baa1945109a8e479f9703423b..afbc7879f78ff9ffd9ae766ebb5395034fab9291 100755
(executable)
--- a/
appinfo/app.php
+++ b/
appinfo/app.php
@@
-1,13
+1,17
@@
<?php
<?php
-require_once (__DIR__ . '/../src/grauphel/Autoloader.php');
-grauphel\Autoloader::register();
+\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'
+ )
+);
-//OCP\App::registerAdmin( 'apptemplate', 'settings' );
+\OC::$server->getSearch()->registerProvider(
+ 'OCA\Grauphel\Search\Provider', array('apps' => array('grauphel'))
+);
-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\Util::addscript('grauphel', 'loader');
+?>