aboutsummaryrefslogtreecommitdiffstats
path: root/mod/zentity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-08 18:50:04 -0700
committerfriendica <info@friendica.com>2012-08-08 18:50:04 -0700
commit9a39d4ade21af15e9d6a3aae1f467f0d173cc0de (patch)
tree569a3839709bf452b44515dc8c6d3f887f78b9dc /mod/zentity.php
parentc28da5673731acbedecb4209c38b72046db597e1 (diff)
downloadvolse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.tar.gz
volse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.tar.bz2
volse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.zip
moving forward again
Diffstat (limited to 'mod/zentity.php')
-rw-r--r--mod/zentity.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/mod/zentity.php b/mod/zentity.php
index 4963d7190..011ae8e79 100644
--- a/mod/zentity.php
+++ b/mod/zentity.php
@@ -29,9 +29,7 @@ function zentity_init(&$a) {
// fullname plus random number
$test[] = legal_webbie($x) . mt_rand(1000,9999);
- header('content-type: application/json');
- echo json_encode(check_webbie($test));
- killme();
+ json_return_and_die(check_webbie($test));
}
if($cmd === 'checkaddr.json') {
@@ -54,9 +52,7 @@ function zentity_init(&$a) {
//print_r($test);
- header('content-type: application/json');
- echo json_encode(check_webbie($test));
- killme();
+ json_return_and_die(check_webbie($test));
}