summaryrefslogtreecommitdiffstats
path: root/help
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-17 20:00:07 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-17 20:00:07 +0200
commitee3d32b023642b675b66f0e14fa5747bc5671f95 (patch)
treeab33bc791cbaba0c2cb390fa90bcf0c6a5b43814 /help
parent47223ae2d98cf74101fd42a49d388ba48d01f80e (diff)
downloadnextcloud-server-ee3d32b023642b675b66f0e14fa5747bc5671f95.tar.gz
nextcloud-server-ee3d32b023642b675b66f0e14fa5747bc5671f95.zip
Everything nice and active now
Diffstat (limited to 'help')
-rw-r--r--help/appinfo/app.php10
-rw-r--r--help/index.php1
2 files changed, 9 insertions, 2 deletions
diff --git a/help/appinfo/app.php b/help/appinfo/app.php
index 952c57f9bc8..4743292ebb7 100644
--- a/help/appinfo/app.php
+++ b/help/appinfo/app.php
@@ -1,6 +1,14 @@
<?php
OC_APP::register( array( "order" => 1, "id" => "help", "name" => "Help" ));
-OC_APP::addSettingsPage( array( "id" => "help", "order" => 2, "href" => OC_HELPER::linkTo( "help", "index.php" ), "name" => "Help", "icon" => OC_HELPER::imagePath( "settings", "information.png" )));
+
+// 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( "settings", "information.png" ));
+if( OC_GROUP::inGroup( $_SESSION["user_id"], "admin" )){
+ OC_APP::addAdminPage( $entry );
+}
+else{
+ OC_APP::addSettingsPage( $entry );
+}
?>
diff --git a/help/index.php b/help/index.php
index 426abe39560..e6a2d5661f5 100644
--- a/help/index.php
+++ b/help/index.php
@@ -9,7 +9,6 @@ if( !OC_USER::isLoggedIn()){
// Load the files we need
OC_UTIL::addStyle( "help", "help" );
-
OC_APP::setActiveNavigationEntry( "help" );
$kbe=OC_OCSCLIENT::getKnownledgebaseEntries();