Skip to content

Commit caf074e

Browse files
committed
fix: Properly read updater channel before returning version channel as a fallback
Signed-off-by: Julius Knorr <jus@bitgrid.net>
1 parent e54c078 commit caf074e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/public/ServerVersion.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ public function getVersionString(): string {
7777
* @since 31.0.0
7878
*/
7979
public function getChannel(): string {
80+
$updaterChannel = Server::get(IConfig::class)->getSystemValueString('updater.release.channel', $this->channel);
81+
82+
if (in_array($updaterChannel, ['beta', 'stable', 'enterprise', 'git'], true)) {
83+
return $updaterChannel;
84+
}
85+
8086
return $this->channel;
8187
}
8288

0 commit comments

Comments
 (0)