diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2016-10-18 11:42:49 +0300 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2016-10-18 11:42:49 +0300 |
commit | f43f5bf93ff450a91e58f0ceec8492ab2a1c0486 (patch) | |
tree | 280ce2ae2661352c9273fb72af1a4ea5e6fe54c9 /program/include/rcmail_output_json.php | |
parent | 1a8bdf554a73aefcb36016bcdbc50d15c7341719 (diff) |
Use JSON_PRETTY_PRINT in devel_mode
This effectively makes PHP 5.4 a real requirement
Diffstat (limited to 'program/include/rcmail_output_json.php')
-rw-r--r-- | program/include/rcmail_output_json.php | 4 |
1 files changed, 2 insertions, 2 deletions
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( |