diff options
author | Julius Knorr <jus@bitgrid.net> | 2025-01-23 21:11:22 +0100 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2025-01-25 01:16:58 +0100 |
commit | f2ae9bcb1161f3967141c8f6ef01c1a5cbe74318 (patch) | |
tree | 13cac04fc67a6ef25f95339b6d15b3d52822af2d /lib/public | |
parent | 32ba3f8e474ceac3c3c018f7b06795b759b56532 (diff) | |
download | nextcloud-server-backport/50368/stable31.tar.gz nextcloud-server-backport/50368/stable31.zip |
fix: Properly read updater channel before returning version channel as a fallbackbackport/50368/stable31
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-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; } |