git.cweiske.de
/
grauphel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#37: Use public database interface; fixes graupel on ownCloud 9
[grauphel.git]
/
appinfo
/
app.php
diff --git
a/appinfo/app.php
b/appinfo/app.php
index 704b2c77250346bb924a538c0f26a2296d421fca..afbc7879f78ff9ffd9ae766ebb5395034fab9291 100755
(executable)
--- a/
appinfo/app.php
+++ b/
appinfo/app.php
@@
-1,15
+1,17
@@
<?php
<?php
-//OCP\App::registerAdmin( 'apptemplate', 'settings' );
-
-OCP\App::addNavigationEntry(
+\OC::$server->getNavigationManager()->add(
array(
'id' => 'grauphel',
'order' => 2342,
'href' => \OCP\Util::linkToRoute('grauphel.gui.index'),
array(
'id' => 'grauphel',
'order' => 2342,
'href' => \OCP\Util::linkToRoute('grauphel.gui.index'),
- 'icon' =>
OCP\Util::imagePath('grauphel', 'tomboy-grey.pn
g'),
+ 'icon' =>
\OCP\Util::imagePath('grauphel', 'app.sv
g'),
'name' => 'Tomboy notes'
)
);
'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');
?>
\OCP\Util::addscript('grauphel', 'loader');
?>