From 1dd18980ae171d9cd16ab95bdfb289b54ef6c34d Mon Sep 17 00:00:00 2001
From: Masaki Kawabata Neto <masaki.kawabata@gmail.com>
Date: Thu, 29 Aug 2013 10:03:58 -0300
Subject: [PATCH] enable usage with CLI interface

Added option to use the status.php with console.php via CLI
---
 status.php | 7 +++++--
 1 file 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);
-- 
GitLab