diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2025-01-24 17:13:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-24 17:13:13 +0100 |
commit | c8df47f089e65dafe644f065a38a3312749ba774 (patch) | |
tree | d4dbbfc7d50782ad37376ed2d65af7091e6dd1d4 | |
parent | 28899e11d13d7fe19299f06620213e255943def4 (diff) | |
parent | caf074eb3ed7844837843ea1f8159d20a4db6400 (diff) | |
download | nextcloud-server-c8df47f089e65dafe644f065a38a3312749ba774.tar.gz nextcloud-server-c8df47f089e65dafe644f065a38a3312749ba774.zip |
Merge pull request #50368 from nextcloud/fix/version-channel
-rw-r--r-- | lib/public/ServerVersion.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/ServerVersion.php b/lib/public/ServerVersion.php index 637c34d3619..d44452d42d0 100644 --- a/lib/public/ServerVersion.php +++ b/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; } |