Use correct channel information
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
e8ea9a5d27
commit
734dd3a2e6
|
@ -428,13 +428,7 @@ class OC_Util {
|
|||
*/
|
||||
public static function getChannel() {
|
||||
OC_Util::loadVersion();
|
||||
|
||||
// Allow overriding update channel
|
||||
if (\OC::$server->getSystemConfig()->getValue('installed', false)) {
|
||||
self::$versionCache['OC_Channel'] = \OC::$server->getAppConfig()->getValue('core', 'OC_Channel');
|
||||
}
|
||||
|
||||
return self::$versionCache['OC_Channel'];
|
||||
return \OC::$server->getConfig()->getSystemValue('updater.release.channel', self::$versionCache['OC_Channel']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -82,8 +82,6 @@ class Util {
|
|||
* @since 8.1.0
|
||||
*/
|
||||
public static function setChannel($channel) {
|
||||
//Flush timestamp to reload version.php
|
||||
\OC::$server->getAppConfig()->setValue('core', 'OC_Channel', $channel);
|
||||
\OC::$server->getConfig()->setSystemValue('updater.release.channel', $channel);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ $OC_VersionString = '11.0 beta 2';
|
|||
|
||||
$OC_VersionCanBeUpgradedFrom = array(9, 1);
|
||||
|
||||
// The ownCloud channel
|
||||
// default Nextcloud channel
|
||||
$OC_Channel = 'git';
|
||||
|
||||
// The build number
|
||||
|
|
Loading…
Reference in New Issue