diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-25 17:57:33 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-25 20:25:52 +0200 |
commit | a471d40cc8a2c72305fdc1728aa05b42c7319a58 (patch) | |
tree | 8496b719454df7763bbd5fa187e6cb5082bee289 /admin | |
parent | 9a989a284a090eea0115a4ae99edc5da88f7459c (diff) | |
download | nextcloud-server-a471d40cc8a2c72305fdc1728aa05b42c7319a58.tar.gz nextcloud-server-a471d40cc8a2c72305fdc1728aa05b42c7319a58.zip |
Show installed apps as default for the apps entry on the settings page.
Installing new apps is moved to the subentry
Diffstat (limited to 'admin')
-rw-r--r-- | admin/appinfo/app.php | 4 | ||||
-rw-r--r-- | admin/apps.php | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/admin/appinfo/app.php b/admin/appinfo/app.php index d01b7d5d624..b78d698e50c 100644 --- a/admin/appinfo/app.php +++ b/admin/appinfo/app.php @@ -4,9 +4,9 @@ OC_APP::register( array( "order" => 1, "id" => "admin", "name" => "Administratio OC_APP::addAdminPage( array( "id" => "core_system", "order" => 1, "href" => OC_HELPER::linkTo( "admin", "system.php" ), "name" =>"System", "icon" => OC_HELPER::imagePath( "admin", "administration.png" ))); OC_APP::addAdminPage( array( "id" => "core_users", "order" => 2, "href" => OC_HELPER::linkTo( "admin", "users.php" ), "name" => "Users", "icon" => OC_HELPER::imagePath( "admin", "users.png" ))); -OC_APP::addAdminPage( array( "id" => "core_apps", "order" => 3, "href" => OC_HELPER::linkTo( "admin", "apps.php" ), "name" => "Apps", "icon" => OC_HELPER::imagePath( "admin", "apps.png" ))); +OC_APP::addAdminPage( array( "id" => "core_apps", "order" => 3, "href" => OC_HELPER::linkTo( "admin", "apps.php?installed" ), "name" => "Apps", "icon" => OC_HELPER::imagePath( "admin", "apps.png" ))); // Add subentries for App installer -OC_APP::addNavigationSubEntry( "core_apps", array( "id" => "core_apps_installed", "order" => 4, "href" => OC_HELPER::linkTo( "admin", "apps.php?installed" ), "name" => "Installed apps", "icon" => OC_HELPER::imagePath( "admin", "navicon.png" ))); +OC_APP::addNavigationSubEntry( "core_apps", array( "id" => "core_apps_get", "order" => 4, "href" => OC_HELPER::linkTo( "admin", "apps.php" ), "name" => "Get new apps", "icon" => OC_HELPER::imagePath( "admin", "navicon.png" ))); ?> diff --git a/admin/apps.php b/admin/apps.php index b47611f536d..bc598a6991e 100644 --- a/admin/apps.php +++ b/admin/apps.php @@ -44,7 +44,7 @@ if($installed){ $apps = OC_APPCONFIG::getApps(); $records = array(); - OC_APP::setActiveNavigationEntry( "core_apps_installed" ); + OC_APP::setActiveNavigationEntry( "core_apps" ); foreach($apps as $app){ $info=OC_APP::getAppInfo("$SERVERROOT/apps/$app/appinfo/info.xml"); $record = array( 'id' => $app, @@ -61,7 +61,6 @@ if($installed){ unset($tmpl); exit(); }else{ - $categories=OC_OCSCLIENT::getCategories(); if($categories==NULL){ OC_APP::setActiveNavigationEntry( "core_apps" ); @@ -74,7 +73,7 @@ if($installed){ if($id==0) { - OC_APP::setActiveNavigationEntry( "core_apps" ); + OC_APP::setActiveNavigationEntry( "core_apps_get" ); if($cat==0){ $numcats=array(); |