enable usage with CLI interface
Added option to use the status.php with console.php via CLI
This commit is contained in:
parent
4db6ed34b8
commit
1dd18980ae
1 changed files with 5 additions and 2 deletions
|
@ -33,8 +33,11 @@ try {
|
|||
'version'=>implode('.', OC_Util::getVersion()),
|
||||
'versionstring'=>OC_Util::getVersionString(),
|
||||
'edition'=>OC_Util::getEditionString());
|
||||
|
||||
echo(json_encode($values));
|
||||
if (OC::$CLI) {
|
||||
print_r($values);
|
||||
} else {
|
||||
echo(json_encode($values));
|
||||
}
|
||||
|
||||
} catch (Exception $ex) {
|
||||
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
|
||||
|
|
Loading…
Reference in a new issue