]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use correct channel information 2396/head
authorMorris Jobke <hey@morrisjobke.de>
Tue, 29 Nov 2016 10:28:04 +0000 (11:28 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 29 Nov 2016 10:29:43 +0000 (11:29 +0100)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/legacy/util.php
lib/public/Util.php
version.php

index cc665b5ec650807e71507d134631650414805950..b3014ed09f37066887aaa42a9669110cfe40f2b4 100644 (file)
@@ -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']);
        }
 
        /**
index 8a7c89976131dee1e0e5cd9c170dba9f31181e93..edda6c232616944aa226d56b5a2d23714a41b3b7 100644 (file)
@@ -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);
        }
        
index bb44d3f26473d49a4ac63167086a1fcb99332865..ddc83aa095ff04e35805ea0ef39b17d35b8ba1e1 100644 (file)
@@ -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