mirror of
https://github.com/nextcloud/server.git
synced 2026-07-11 18:47:17 -04:00
fix(files_external): ignore deprecated backends
Signed-off-by: Kent Delante <kent@delante.me>
This commit is contained in:
parent
97fb7ec6b2
commit
231fb49382
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ class BackendService {
|
|||
* @return Backend[]
|
||||
*/
|
||||
public function getAvailableBackends() {
|
||||
$backends = 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