diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-04-21 13:38:08 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 12:42:35 +0200 |
commit | 3b1f291c600672c7ccd1704c150bd14a0fce8bc2 (patch) | |
tree | 3cdd0109deeeb9110e43bf28594f71720e296dec /lib/private/app.php | |
parent | 727277945670f339e91d0f6aef618b9cf43618d2 (diff) | |
download | nextcloud-server-3b1f291c600672c7ccd1704c150bd14a0fce8bc2.tar.gz nextcloud-server-3b1f291c600672c7ccd1704c150bd14a0fce8bc2.zip |
Fix sorting of apps
Diffstat (limited to 'lib/private/app.php')
-rw-r--r-- | lib/private/app.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index d88855840a9..52f77535a52 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -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; } |