aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2025-01-24 17:13:13 +0100
committerGitHub <noreply@github.com>2025-01-24 17:13:13 +0100
commitc8df47f089e65dafe644f065a38a3312749ba774 (patch)
treed4dbbfc7d50782ad37376ed2d65af7091e6dd1d4
parent28899e11d13d7fe19299f06620213e255943def4 (diff)
parentcaf074eb3ed7844837843ea1f8159d20a4db6400 (diff)
downloadnextcloud-server-c8df47f089e65dafe644f065a38a3312749ba774.tar.gz
nextcloud-server-c8df47f089e65dafe644f065a38a3312749ba774.zip
Merge pull request #50368 from nextcloud/fix/version-channel
-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;
}