mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-11-29 04:24:11 +01:00
ported the oc_app calls
This commit is contained in:
parent
d3a3bffbca
commit
9862084672
@ -10,12 +10,12 @@
|
|||||||
OC::$CLASSPATH['OC_Bookmarks_Bookmarks'] = 'apps/bookmarks/lib/bookmarks.php';
|
OC::$CLASSPATH['OC_Bookmarks_Bookmarks'] = 'apps/bookmarks/lib/bookmarks.php';
|
||||||
OC::$CLASSPATH['OC_Search_Provider_Bookmarks'] = 'apps/bookmarks/lib/search.php';
|
OC::$CLASSPATH['OC_Search_Provider_Bookmarks'] = 'apps/bookmarks/lib/search.php';
|
||||||
|
|
||||||
OC_App::register( array( 'order' => 70, 'id' => 'bookmark', 'name' => 'Bookmarks' ));
|
OCP\App::register( array( 'order' => 70, 'id' => 'bookmark', 'name' => 'Bookmarks' ));
|
||||||
|
|
||||||
$l = new OC_l10n('bookmarks');
|
$l = new OC_l10n('bookmarks');
|
||||||
OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OCP\Util::linkTo( 'bookmarks', 'index.php' ), 'icon' => OCP\Util::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => $l->t('Bookmarks')));
|
OCP\App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OCP\Util::linkTo( 'bookmarks', 'index.php' ), 'icon' => OCP\Util::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => $l->t('Bookmarks')));
|
||||||
|
|
||||||
OC_App::registerPersonal('bookmarks', 'settings');
|
OCP\App::registerPersonal('bookmarks', 'settings');
|
||||||
OCP\Util::addscript('bookmarks','bookmarksearch');
|
OCP\Util::addscript('bookmarks','bookmarksearch');
|
||||||
|
|
||||||
OC_Search::registerProvider('OC_Search_Provider_Bookmarks');
|
OC_Search::registerProvider('OC_Search_Provider_Bookmarks');
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
OCP\User::checkLoggedIn();
|
OCP\User::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('bookmarks');
|
OC_Util::checkAppEnabled('bookmarks');
|
||||||
|
|
||||||
OC_App::setActiveNavigationEntry( 'bookmarks_index' );
|
OCP\App::setActiveNavigationEntry( 'bookmarks_index' );
|
||||||
|
|
||||||
OCP\Util::addscript('bookmarks','bookmarks');
|
OCP\Util::addscript('bookmarks','bookmarks');
|
||||||
OCP\Util::addStyle('bookmarks', 'bookmarks');
|
OCP\Util::addStyle('bookmarks', 'bookmarks');
|
||||||
|
Loading…
Reference in New Issue
Block a user