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/gallery | |
parent | c94f39b488f9ae6bd24cbdbb5cfa877e29f199e3 (diff) | |
download | nextcloud-server-2fe646dcec08b36179aa2b6ebca447a20e409b03.tar.gz nextcloud-server-2fe646dcec08b36179aa2b6ebca447a20e409b03.zip |
ported the oc_app calls
Diffstat (limited to 'apps/gallery')
-rwxr-xr-x | apps/gallery/appinfo/app.php | 4 | ||||
-rwxr-xr-x | apps/gallery/index.php | 2 |
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'); |