projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
441e2c8
)
We have to print/echo when outputting json (thanks hannes)
author
Mikael Nordfeldth
<mmn@hethane.se>
Mon, 14 Dec 2015 20:29:39 +0000
(21:29 +0100)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Mon, 14 Dec 2015 20:29:39 +0000
(21:29 +0100)
lib/action.php
patch
|
blob
|
history
diff --git
a/lib/action.php
b/lib/action.php
index 4a815c148360efa6d0064c411cc6b06a669a245e..c2d60e11e974bec1414fe2b9b143b4babdb4ce0d 100644
(file)
--- 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->tex
t(json_encode($error_array));
+
prin
t(json_encode($error_array));
$this->endDocument('json');
break;
case 'text':