nextcloud/help/appinfo/app.php

15 lines
486 B
PHP
Raw Normal View History

2011-04-16 19:49:57 +04:00
<?php
OC_APP::register( array( "order" => 1, "id" => "help", "name" => "Help" ));
2011-04-17 22:00:07 +04:00
// Workaround for having help as the last entry always
2011-04-17 22:11:28 +04:00
$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" )){
2011-04-17 22:00:07 +04:00
OC_APP::addAdminPage( $entry );
}
else{
OC_APP::addSettingsPage( $entry );
}
2011-04-16 19:49:57 +04:00
?>