From 3b1f291c600672c7ccd1704c150bd14a0fce8bc2 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 21 Apr 2014 13:38:08 +0200 Subject: [PATCH] Fix sorting of apps --- lib/private/app.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/private/app.php b/lib/private/app.php index d88855840a..52f77535a5 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; }