From 2fe646dcec08b36179aa2b6ebca447a20e409b03 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Wed, 2 May 2012 00:50:26 +0200 Subject: ported the oc_app calls --- apps/files/admin.php | 2 +- apps/files/appinfo/app.php | 4 ++-- apps/files/index.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/files') diff --git a/apps/files/admin.php b/apps/files/admin.php index 120e245fd42..c14a97568f0 100755 --- a/apps/files/admin.php +++ b/apps/files/admin.php @@ -49,7 +49,7 @@ if($_POST) { $maxZipInputSize = OCP\Util::humanFileSize(OC_Config::getValue('maxZipInputSize', OCP\Util::computerFileSize('800 MB'))); $allowZipDownload = intval(OC_Config::getValue('allowZipDownload', true)); -OC_App::setActiveNavigationEntry( "files_administration" ); +OCP\App::setActiveNavigationEntry( "files_administration" ); $tmpl = new OC_Template( 'files', 'admin' ); $tmpl->assign( 'htaccessWorking', $htaccessWorking ); diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php index 0e82713fe5c..4a05a655957 100755 --- a/apps/files/appinfo/app.php +++ b/apps/files/appinfo/app.php @@ -3,8 +3,8 @@ $l=OC_L10N::get('files'); -OC_App::register( array( "order" => 2, "id" => "files", "name" => "Files" )); +OCP\App::register( array( "order" => 2, "id" => "files", "name" => "Files" )); -OC_App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") )); +OCP\App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") )); OC_Search::registerProvider('OC_Search_Provider_File'); diff --git a/apps/files/index.php b/apps/files/index.php index 3f97317fc5f..86b877115ca 100755 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -34,7 +34,7 @@ OCP\Util::addscript( 'files', 'fileactions' ); if(!isset($_SESSION['timezone'])){ OCP\Util::addscript( 'files', 'timezone' ); } -OC_App::setActiveNavigationEntry( "files_index" ); +OCP\App::setActiveNavigationEntry( "files_index" ); // Load the files $dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : ''; // Redirect if directory does not exist -- cgit v1.2.3