]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
We have to print/echo when outputting json (thanks hannes)
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Dec 2015 20:29:39 +0000 (21:29 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Dec 2015 20:31:10 +0000 (21:31 +0100)
lib/action.php

index 4a815c148360efa6d0064c411cc6b06a669a245e..c2d60e11e974bec1414fe2b9b143b4babdb4ce0d 100644 (file)
@@ -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':