From f43f5bf93ff450a91e58f0ceec8492ab2a1c0486 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 18 Oct 2016 10:42:49 +0200 Subject: Use JSON_PRETTY_PRINT in devel_mode This effectively makes PHP 5.4 a real requirement --- program/include/rcmail_output_json.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/include/rcmail_output_json.php') diff --git a/program/include/rcmail_output_json.php b/program/include/rcmail_output_json.php index 0d7e278b8..5b559e2cd 100644 --- a/program/include/rcmail_output_json.php +++ b/program/include/rcmail_output_json.php @@ -232,7 +232,7 @@ class rcmail_output_json extends rcmail_output $response = $hook['response']; unset($hook['response']); - echo self::json_serialize($response); + echo self::json_serialize($response, $this->devel_mode); } /** @@ -245,7 +245,7 @@ class rcmail_output_json extends rcmail_output foreach ($this->commands as $i => $args) { $method = array_shift($args); foreach ($args as $i => $arg) { - $args[$i] = self::json_serialize($arg); + $args[$i] = self::json_serialize($arg, $this->devel_mode); } $out .= sprintf( -- cgit v1.2.3