mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 01:00:50 -04:00
Merge pull request #50401 from nextcloud/backport/50368/stable 31 8
[stable31] fix: Properly read updater channel before returning version channel as a fallback
This commit is contained in:
commit
bb2980e738
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue