]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show installed apps as default for the apps entry on the settings page.
authorRobin Appelman <icewind1991@gmail.com>
Mon, 25 Jul 2011 15:57:33 +0000 (17:57 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Mon, 25 Jul 2011 18:25:52 +0000 (20:25 +0200)
Installing new apps is moved to the subentry

admin/appinfo/app.php
admin/apps.php

index d01b7d5d624bfeeb2e409472c2091e98b04abbff..b78d698e50c6f41959bab11ea901cfeb014b87e5 100644 (file)
@@ -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" )));
 
 ?>
index b47611f536d800dc29b1b12826941362466b35de..bc598a6991e7efca9b6857bf9e4732991bf5ec73 100644 (file)
@@ -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();