diff options
author | Masaki Kawabata Neto <masaki.kawabata@gmail.com> | 2013-08-29 10:03:58 -0300 |
---|---|---|
committer | Masaki Kawabata Neto <masaki.kawabata@gmail.com> | 2013-08-29 10:03:58 -0300 |
commit | 1dd18980ae171d9cd16ab95bdfb289b54ef6c34d (patch) | |
tree | 1a13e3a47bb04092e3c0aaafb86dd51fd23901e8 /status.php | |
parent | 4db6ed34b8a9e26f34e7cfb0c1cb8f9fd43dafe4 (diff) | |
download | nextcloud-server-1dd18980ae171d9cd16ab95bdfb289b54ef6c34d.tar.gz nextcloud-server-1dd18980ae171d9cd16ab95bdfb289b54ef6c34d.zip |
enable usage with CLI interface
Added option to use the status.php with console.php via CLI
Diffstat (limited to 'status.php')
-rw-r--r-- | status.php | 7 |
1 files changed, 5 insertions, 2 deletions
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); |