mirror of
https://github.com/nextcloud/server.git
synced 2026-07-14 12:21:50 -04:00
fix(files_external): ignore deprecated backends
Signed-off-by: Kent Delante <kent@delante.me>
This commit is contained in:
parent
752a279274
commit
1377ea90aa
1 changed files with 3 additions and 1 deletions
|
|
@ -178,7 +178,9 @@ class BackendService {
|
|||
* @return Backend[]
|
||||
*/
|
||||
public function getAvailableBackends() {
|
||||
return array_filter($this->getBackends(), fn (Backend $backend) => !$backend->checkRequiredDependencies());
|
||||
$backends = array_filter($this->getBackends(), fn (Backend $backend) => $backend->checkRequiredDependencies() === [] && $backend->getDeprecateTo() === null);
|
||||
uasort($backends, [Backend::class, 'lexicalCompare']);
|
||||
return $backends;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue