From: Masaki Kawabata Neto Date: Thu, 29 Aug 2013 13:03:58 +0000 (-0300) Subject: enable usage with CLI interface X-Git-Tag: v6.0.0alpha2~243^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1dd18980ae171d9cd16ab95bdfb289b54ef6c34d;p=nextcloud-server.git enable usage with CLI interface Added option to use the status.php with console.php via CLI --- diff --git a/status.php b/status.php index 179fe3f49f2..88805ad6b19 100644 --- a/status.php +++ b/status.php @@ -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);