diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-07-29 21:36:03 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-07-29 21:36:03 +0200 |
commit | bafd684eb694ed0bd86b46ff7cd36382c1cebc34 (patch) | |
tree | c3bb1e013d563263002d052eb41032076a36a5f9 /help | |
parent | 220132ca237f5077f5145bf327e8528a652ad559 (diff) | |
download | nextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.tar.gz nextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.zip |
Renaming classes :-)
Diffstat (limited to 'help')
-rw-r--r-- | help/appinfo/app.php | 10 | ||||
-rw-r--r-- | help/index.php | 12 | ||||
-rw-r--r-- | help/templates/index.php | 4 |
3 files changed, 13 insertions, 13 deletions
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 @@ <?php -OC_APP::register( array( "order" => 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 @@ <?php require_once('../lib/base.php'); -if( !OC_USER::isLoggedIn()){ - header( "Location: ".OC_HELPER::linkTo( "index.php" )); +if( !OC_User::isLoggedIn()){ + header( "Location: ".OC_Helper::linkTo( "index.php" )); exit(); } @@ -12,13 +12,13 @@ $page=2; // Load the files we need -OC_UTIL::addStyle( "help", "help" ); -OC_APP::setActiveNavigationEntry( "help" ); +OC_Util::addStyle( "help", "help" ); +OC_App::setActiveNavigationEntry( "help" ); -$kbe=OC_OCSCLIENT::getKnownledgebaseEntries(); +$kbe=OC_OCSClient::getKnownledgebaseEntries(); -$tmpl = new OC_TEMPLATE( "help", "index", "admin" ); +$tmpl = new OC_Template( "help", "index", "admin" ); $tmpl->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 @@ </tbody> </table> <?php - $url=OC_HELPER::linkTo( "help", "index.php" ).'?page='; - $pageNavi=OC_UTIL::getPageNavi($_['pagecount'],$_['page'],$url); + $url=OC_Helper::linkTo( "help", "index.php" ).'?page='; + $pageNavi=OC_Util::getPageNavi($_['pagecount'],$_['page'],$url); $pageNavi->printPage(); ?> <a target="_blank" class="prettybutton" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new"><?php echo $l->t( 'ASK A QUESTION' ); ?></a> |