Also fix "occ status"

This commit is contained in:
Joas Schilling 2016-09-06 14:13:28 +02:00
parent 1131140e69
commit c01fd540be
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 4 additions and 2 deletions

View File

@ -38,11 +38,13 @@ class Status extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output) {
$installed = (bool) \OC::$server->getConfig()->getSystemValue('installed', false);
$values = array(
'installed' => (bool) \OC::$server->getConfig()->getSystemValue('installed', false),
'installed' => $installed,
'version' => implode('.', \OCP\Util::getVersion()),
'versionstring' => \OC_Util::getVersionString(),
'edition' => \OC_Util::getEditionString(),
'edition' => $installed ? \OC_Util::getEditionString() : '',
);
$this->writeArrayInOutputFormat($input, $output, $values);