summaryrefslogtreecommitdiffstats
path: root/apps/gallery
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/gallery
parentc94f39b488f9ae6bd24cbdbb5cfa877e29f199e3 (diff)
downloadnextcloud-server-2fe646dcec08b36179aa2b6ebca447a20e409b03.tar.gz
nextcloud-server-2fe646dcec08b36179aa2b6ebca447a20e409b03.zip
ported the oc_app calls
Diffstat (limited to 'apps/gallery')
-rwxr-xr-xapps/gallery/appinfo/app.php4
-rwxr-xr-xapps/gallery/index.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/gallery/appinfo/app.php b/apps/gallery/appinfo/app.php
index ad4723c1425..e6305a76b75 100755
--- a/apps/gallery/appinfo/app.php
+++ b/apps/gallery/appinfo/app.php
@@ -29,12 +29,12 @@ OC::$CLASSPATH['OC_Gallery_Hooks_Handlers'] = 'apps/gallery/lib/hooks_handlers.p
$l = OC_L10N::get('gallery');
-OC_App::register(array(
+OCP\App::register(array(
'order' => 20,
'id' => 'gallery',
'name' => 'Pictures'));
-OC_App::addNavigationEntry( array(
+OCP\App::addNavigationEntry( array(
'id' => 'gallery_index',
'order' => 20,
'href' => OCP\Util::linkTo('gallery', 'index.php'),
diff --git a/apps/gallery/index.php b/apps/gallery/index.php
index 1d7fc1aee74..0ae6b15d763 100755
--- a/apps/gallery/index.php
+++ b/apps/gallery/index.php
@@ -25,7 +25,7 @@
OCP\User::checkLoggedIn();
OC_Util::checkAppEnabled('gallery');
-OC_App::setActiveNavigationEntry( 'gallery_index' );
+OCP\App::setActiveNavigationEntry( 'gallery_index' );
if (!file_exists(OC_Config::getValue("datadirectory").'/'. OCP\USER::getUser() .'/gallery')) {
mkdir(OC_Config::getValue("datadirectory").'/'. OCP\USER::getUser() .'/gallery');