summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks/appinfo/app.php
diff options
context:
space:
mode:
authorDavid Iwanowitsch <david+git@unclouded.de>2012-01-29 19:32:33 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-01 15:40:59 +0100
commite229a6adecde57d919b6b1385729cbf8cd41fe89 (patch)
treec3d3908d6f3cc144b90bec6e1a58b6b4a32a63ed /apps/bookmarks/appinfo/app.php
parent4145e3b2651312b5949de3aae4f34c1be5332eb8 (diff)
downloadnextcloud-server-e229a6adecde57d919b6b1385729cbf8cd41fe89.tar.gz
nextcloud-server-e229a6adecde57d919b6b1385729cbf8cd41fe89.zip
Added searchprovider for bookmarks, initial l10n support for bookmark plugin
moved some code from updateList.php to bookmarks.php, to make it reusable
Diffstat (limited to 'apps/bookmarks/appinfo/app.php')
-rw-r--r--apps/bookmarks/appinfo/app.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/bookmarks/appinfo/app.php b/apps/bookmarks/appinfo/app.php
index 44a1e47dff9..479d8ed4767 100644
--- a/apps/bookmarks/appinfo/app.php
+++ b/apps/bookmarks/appinfo/app.php
@@ -7,8 +7,13 @@
* See the COPYING-README file.
*/
+OC::$CLASSPATH['OC_Bookmarks_Bookmarks'] = 'apps/bookmarks/lib/bookmarks.php';
+
OC_App::register( array( 'order' => 70, 'id' => 'bookmark', 'name' => 'Bookmarks' ));
-OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OC_Helper::linkTo( 'bookmarks', 'index.php' ), 'icon' => OC_Helper::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => 'Bookmarks' ));
+$l = new OC_l10n('bookmarks');
+OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OC_Helper::linkTo( 'bookmarks', 'index.php' ), 'icon' => OC_Helper::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => $l->t('Bookmarks')));
OC_App::registerPersonal('bookmarks', 'settings');
+require_once('apps/bookmarks/lib/search.php');
+OC_Util::addScript('bookmarks','bookmarksearch');