From bafd684eb694ed0bd86b46ff7cd36382c1cebc34 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Fri, 29 Jul 2011 21:36:03 +0200 Subject: Renaming classes :-) --- help/appinfo/app.php | 10 +++++----- help/index.php | 12 ++++++------ help/templates/index.php | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'help') diff --git a/help/appinfo/app.php b/help/appinfo/app.php index fd46085ef77..2e82c0cd181 100644 --- a/help/appinfo/app.php +++ b/help/appinfo/app.php @@ -1,14 +1,14 @@ 1, "id" => "help", "name" => "Help" )); +OC_App::register( array( "order" => 1, "id" => "help", "name" => "Help" )); // Workaround for having help as the last entry always -$entry = array( "id" => "help", "order" => 1000, "href" => OC_HELPER::linkTo( "help", "index.php" ), "name" => "Help", "icon" => OC_HELPER::imagePath( "help", "help.png" )); -if( isset( $_SESSION["user_id"] ) && OC_GROUP::inGroup( $_SESSION["user_id"], "admin" )){ - OC_APP::addAdminPage( $entry ); +$entry = array( "id" => "help", "order" => 1000, "href" => OC_Helper::linkTo( "help", "index.php" ), "name" => "Help", "icon" => OC_Helper::imagePath( "help", "help.png" )); +if( isset( $_SESSION["user_id"] ) && OC_Group::inGroup( $_SESSION["user_id"], "admin" )){ + OC_App::addAdminPage( $entry ); } else{ - OC_APP::addSettingsPage( $entry ); + OC_App::addSettingsPage( $entry ); } ?> diff --git a/help/index.php b/help/index.php index adcb47f08f6..f1adea0be01 100644 --- a/help/index.php +++ b/help/index.php @@ -1,8 +1,8 @@ assign( "kbe", $kbe ); $tmpl->assign( "pagecount", $pagecount ); $tmpl->assign( "page", $page ); diff --git a/help/templates/index.php b/help/templates/index.php index 7105507f5eb..f239de217d0 100644 --- a/help/templates/index.php +++ b/help/templates/index.php @@ -17,8 +17,8 @@ printPage(); ?> t( 'ASK A QUESTION' ); ?> -- cgit v1.2.3