Skip to content

Commit

Permalink
fix: Properly read updater channel before returning version channel a…
Browse files Browse the repository at this point in the history
…s a fallback

Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr authored and AndyScherzinger committed Jan 25, 2025
1 parent 32ba3f8 commit f2ae9bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/public/ServerVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ public function getVersionString(): string {
* @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;
}

Expand Down

0 comments on commit f2ae9bc

Please sign in to comment.