aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Knorr <jus@bitgrid.net>2025-01-23 21:11:22 +0100
committerJulius Knorr <jus@bitgrid.net>2025-01-24 14:49:58 +0100
commitcaf074eb3ed7844837843ea1f8159d20a4db6400 (patch)
treea3ff19ecf0f10af5ef3a124686e37ee416fdd0b0
parente54c07843c373c0842329973d8b74fe5e62fdfd3 (diff)
downloadnextcloud-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.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;
}