Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-21 15:38:08 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-03 14:42:35 +0400
commit3b1f291c600672c7ccd1704c150bd14a0fce8bc2 (patch)
tree3cdd0109deeeb9110e43bf28594f71720e296dec /lib/private/app.php
parent727277945670f339e91d0f6aef618b9cf43618d2 (diff)
Fix sorting of apps
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php6
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;
}