We have to print/echo when outputting json (thanks hannes)
This commit is contained in:
parent
441e2c8d34
commit
8d1105fe73
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue
Block a user