John Molakvoæ
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
0 deletions
-
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; |
|
|
|
} |
|
|
|
|
|
|
|
|