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

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/SettingsService.php')
-rw-r--r--lib/Service/SettingsService.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Service/SettingsService.php b/lib/Service/SettingsService.php
index 917e987..b887346 100644
--- a/lib/Service/SettingsService.php
+++ b/lib/Service/SettingsService.php
@@ -89,10 +89,9 @@ class SettingsService {
private function completeSettingsPlatforms() {
$list = [];
$platforms = $this->platformService->getPlatforms();
- $classes = array_keys($platforms);
- foreach ($classes as $class) {
- $platform = $platforms[$class];
- $list[$class] = [
+ foreach ($platforms as $wrapper) {
+ $platform = $wrapper->getPlatform();
+ $list[$wrapper->getClass()] = [
'id' => $platform->getId(),
'name' => $platform->getName()
];