diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 00:50:26 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 00:50:26 +0200 |
commit | 2fe646dcec08b36179aa2b6ebca447a20e409b03 (patch) | |
tree | e5b909e88d9271e3301c9db3fea8771d059a914d /apps/media | |
parent | c94f39b488f9ae6bd24cbdbb5cfa877e29f199e3 (diff) | |
download | nextcloud-server-2fe646dcec08b36179aa2b6ebca447a20e409b03.tar.gz nextcloud-server-2fe646dcec08b36179aa2b6ebca447a20e409b03.zip |
ported the oc_app calls
Diffstat (limited to 'apps/media')
-rwxr-xr-x | apps/media/appinfo/app.php | 6 | ||||
-rwxr-xr-x | apps/media/index.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/media/appinfo/app.php b/apps/media/appinfo/app.php index 5e7a411f677..26cb2045549 100755 --- a/apps/media/appinfo/app.php +++ b/apps/media/appinfo/app.php @@ -25,10 +25,10 @@ $l=OC_L10N::get('media'); require_once('apps/media/lib_media.php'); OCP\Util::addscript('media','loader'); -OC_APP::registerPersonal('media','settings'); +OCP\App::registerPersonal('media','settings'); -OC_App::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' )); +OCP\App::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' )); -OC_App::addNavigationEntry(array('id' => 'media_index', 'order' => 2, 'href' => OCP\Util::linkTo('media', 'index.php'), 'icon' => OCP\Util::imagePath('core', 'places/music.svg'), 'name' => $l->t('Music'))); +OCP\App::addNavigationEntry(array('id' => 'media_index', 'order' => 2, 'href' => OCP\Util::linkTo('media', 'index.php'), 'icon' => OCP\Util::imagePath('core', 'places/music.svg'), 'name' => $l->t('Music'))); OC_Search::registerProvider('OC_MediaSearchProvider'); diff --git a/apps/media/index.php b/apps/media/index.php index 0d226cb0ca1..df597c31085 100755 --- a/apps/media/index.php +++ b/apps/media/index.php @@ -39,7 +39,7 @@ OCP\Util::addscript('media','scanner'); OCP\Util::addscript('media','jquery.jplayer.min'); OCP\Util::addStyle('media','music'); -OC_App::setActiveNavigationEntry( 'media_index' ); +OCP\App::setActiveNavigationEntry( 'media_index' ); $tmpl = new OC_Template( 'media', 'music', 'user' ); $tmpl->printPage(); |