aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Knorr <jus@bitgrid.net>2025-01-23 21:11:22 +0100
committerAndy Scherzinger <info@andy-scherzinger.de>2025-01-25 01:16:58 +0100
commitf2ae9bcb1161f3967141c8f6ef01c1a5cbe74318 (patch)
tree13cac04fc67a6ef25f95339b6d15b3d52822af2d /lib/public
parent32ba3f8e474ceac3c3c018f7b06795b759b56532 (diff)
downloadnextcloud-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.php6
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;
}