Fix sorting of apps
This commit is contained in:
parent
7272779456
commit
3b1f291c60
|
@ -169,8 +169,10 @@ class OC_App {
|
||||||
}
|
}
|
||||||
$appConfig = \OC::$server->getAppConfig();
|
$appConfig = \OC::$server->getAppConfig();
|
||||||
$appStatus = $appConfig->getValues(false, 'enabled');
|
$appStatus = $appConfig->getValues(false, 'enabled');
|
||||||
$apps = array();
|
|
||||||
foreach ($appStatus as $app => $enabled) {
|
foreach ($appStatus as $app => $enabled) {
|
||||||
|
if ($app === 'files') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if ($enabled === 'yes') {
|
if ($enabled === 'yes') {
|
||||||
$apps[] = $app;
|
$apps[] = $app;
|
||||||
} else if ($enabled !== 'no') {
|
} else if ($enabled !== 'no') {
|
||||||
|
@ -186,6 +188,8 @@ class OC_App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sort($apps);
|
||||||
|
array_unshift($apps, 'files');
|
||||||
self::$enabledAppsCache = $apps;
|
self::$enabledAppsCache = $apps;
|
||||||
return $apps;
|
return $apps;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue