diff --git a/lib/action.php b/lib/action.php index 4a815c1483..c2d60e11e9 100644 --- a/lib/action.php +++ b/lib/action.php @@ -1490,7 +1490,7 @@ class Action extends HTMLOutputter // lawsuit } $this->initDocument('json'); $error_array = array('error' => $msg, 'request' => $_SERVER['REQUEST_URI']); - $this->text(json_encode($error_array)); + print(json_encode($error_array)); $this->endDocument('json'); break; case 'text':