diff options
author | Julius Knorr <jus@bitgrid.net> | 2025-01-23 21:11:22 +0100 |
---|---|---|
committer | Julius Knorr <jus@bitgrid.net> | 2025-01-24 14:49:58 +0100 |
commit | caf074eb3ed7844837843ea1f8159d20a4db6400 (patch) | |
tree | a3ff19ecf0f10af5ef3a124686e37ee416fdd0b0 | |
parent | e54c07843c373c0842329973d8b74fe5e62fdfd3 (diff) | |
download | nextcloud-server-fix/version-channel.tar.gz nextcloud-server-fix/version-channel.zip |
fix: Properly read updater channel before returning version channel as a fallbackfix/version-channel
Signed-off-by: Julius Knorr <jus@bitgrid.net>
-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; } |