Add extendedSupport to Subscription
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
1d24a06aa5
commit
78d7448c7d
|
@ -97,6 +97,7 @@ class OCSController extends \OCP\AppFramework\OCSController {
|
||||||
'micro' => $micro,
|
'micro' => $micro,
|
||||||
'string' => \OC_Util::getVersionString(),
|
'string' => \OC_Util::getVersionString(),
|
||||||
'edition' => '',
|
'edition' => '',
|
||||||
|
'extendedSupport' => \OCP\Util::hasExtendedSupport()
|
||||||
);
|
);
|
||||||
|
|
||||||
if($this->userSession->isLoggedIn()) {
|
if($this->userSession->isLoggedIn()) {
|
||||||
|
|
|
@ -90,6 +90,10 @@ class Util {
|
||||||
return \OC_Util::getVersion();
|
return \OC_Util::getVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function hasExtendedSupport(): bool {
|
||||||
|
return \OC::$server->getConfig()->getSystemValueBool('extendedSupport', false);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set current update channel
|
* Set current update channel
|
||||||
* @param string $channel
|
* @param string $channel
|
||||||
|
|
|
@ -42,14 +42,16 @@ try {
|
||||||
# see core/lib/private/legacy/defaults.php and core/themes/example/defaults.php
|
# see core/lib/private/legacy/defaults.php and core/themes/example/defaults.php
|
||||||
# for description and defaults
|
# for description and defaults
|
||||||
$defaults = new \OCP\Defaults();
|
$defaults = new \OCP\Defaults();
|
||||||
$values=array(
|
$values = [
|
||||||
'installed'=>$installed,
|
'installed'=>$installed,
|
||||||
'maintenance' => $maintenance,
|
'maintenance' => $maintenance,
|
||||||
'needsDbUpgrade' => \OCP\Util::needUpgrade(),
|
'needsDbUpgrade' => \OCP\Util::needUpgrade(),
|
||||||
'version'=>implode('.', \OCP\Util::getVersion()),
|
'version'=>implode('.', \OCP\Util::getVersion()),
|
||||||
'versionstring'=>OC_Util::getVersionString(),
|
'versionstring'=>OC_Util::getVersionString(),
|
||||||
'edition'=> '',
|
'edition'=> '',
|
||||||
'productname'=>$defaults->getName());
|
'productname'=>$defaults->getName(),
|
||||||
|
'extendedSupport' => \OCP\Util::hasExtendedSupport()
|
||||||
|
];
|
||||||
if (OC::$CLI) {
|
if (OC::$CLI) {
|
||||||
print_r($values);
|
print_r($values);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue