|
|
|
|
@ -89,7 +89,19 @@ class Util { |
|
|
|
|
public static function getVersion() { |
|
|
|
|
return \OC_Util::getVersion(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @since 17.0.0 |
|
|
|
|
*/ |
|
|
|
|
public static function hasExtendedSupport(): bool { |
|
|
|
|
try { |
|
|
|
|
/** @var \OCP\Support\Subscription\IRegistry */ |
|
|
|
|
$subscriptionRegistry = \OC::$server->query(\OCP\Support\Subscription\IRegistry::class); |
|
|
|
|
return $subscriptionRegistry->delegateHasExtendedSupport(); |
|
|
|
|
} catch (AppFramework\QueryException $e) {} |
|
|
|
|
return \OC::$server->getConfig()->getSystemValueBool('extendedSupport', false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set current update channel |
|
|
|
|
* @param string $channel |
|
|
|
|
@ -98,7 +110,7 @@ class Util { |
|
|
|
|
public static function setChannel($channel) { |
|
|
|
|
\OC::$server->getConfig()->setSystemValue('updater.release.channel', $channel); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get current update channel |
|
|
|
|
* @return string |
|
|
|
|
@ -501,7 +513,7 @@ class Util { |
|
|
|
|
public static function needUpgrade() { |
|
|
|
|
if (!isset(self::$needUpgradeCache)) { |
|
|
|
|
self::$needUpgradeCache=\OC_Util::needUpgrade(\OC::$server->getSystemConfig()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return self::$needUpgradeCache; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|