Browse Source

Merge pull request #50368 from nextcloud/fix/version-channel

pull/50353/head
John Molakvoæ 10 months ago
committed by GitHub
parent
commit
c8df47f089
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      lib/public/ServerVersion.php

6
lib/public/ServerVersion.php

@ -77,6 +77,12 @@ class ServerVersion {
* @since 31.0.0
*/
public function getChannel(): string {
$updaterChannel = Server::get(IConfig::class)->getSystemValueString('updater.release.channel', $this->channel);
if (in_array($updaterChannel, ['beta', 'stable', 'enterprise', 'git'], true)) {
return $updaterChannel;
}
return $this->channel;
}

Loading…
Cancel
Save