summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-02 00:50:26 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-02 00:50:26 +0200
commit2fe646dcec08b36179aa2b6ebca447a20e409b03 (patch)
treee5b909e88d9271e3301c9db3fea8771d059a914d /apps/media
parentc94f39b488f9ae6bd24cbdbb5cfa877e29f199e3 (diff)
downloadnextcloud-server-2fe646dcec08b36179aa2b6ebca447a20e409b03.tar.gz
nextcloud-server-2fe646dcec08b36179aa2b6ebca447a20e409b03.zip
ported the oc_app calls
Diffstat (limited to 'apps/media')
-rwxr-xr-xapps/media/appinfo/app.php6
-rwxr-xr-xapps/media/index.php2
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();