nextcloud/help/appinfo/app.php

15 lines
486 B
PHP
Raw Normal View History

2011-04-16 19:49:57 +04:00
<?php
2011-07-29 23:36:03 +04:00
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-07-29 23:36:03 +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" )){
OC_App::addAdminPage( $entry );
2011-04-17 22:00:07 +04:00
}
else{
2011-07-29 23:36:03 +04:00
OC_App::addSettingsPage( $entry );
2011-04-17 22:00:07 +04:00
}
2011-04-16 19:49:57 +04:00
?>