]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix sorting of apps
authorRobin Appelman <icewind@owncloud.com>
Mon, 21 Apr 2014 11:38:08 +0000 (13:38 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 3 Jun 2014 10:42:35 +0000 (12:42 +0200)
lib/private/app.php

index d88855840a9aa5d062c338541d78e85893965f32..52f77535a5262fce2b34ba411f0546225910805e 100644 (file)
@@ -169,8 +169,10 @@ class OC_App {
                }
                $appConfig = \OC::$server->getAppConfig();
                $appStatus = $appConfig->getValues(false, 'enabled');
-               $apps = array();
                foreach ($appStatus as $app => $enabled) {
+                       if ($app === 'files') {
+                               continue;
+                       }
                        if ($enabled === 'yes') {
                                $apps[] = $app;
                        } else if ($enabled !== 'no') {
@@ -186,6 +188,8 @@ class OC_App {
                                }
                        }
                }
+               sort($apps);
+               array_unshift($apps, 'files');
                self::$enabledAppsCache = $apps;
                return $apps;
        }