More patches as part of #1225. Change the 'core' modules to use the json::reply

method to set the content type header and encode the response as a json object
This commit is contained in:
Tim Almdal
2010-07-31 15:44:55 -07:00
committed by Bharat Mediratta
parent 89d18c0714
commit 91a2c04a24
27 changed files with 84 additions and 100 deletions
+1 -2
View File
@@ -35,8 +35,7 @@ class rest_Core {
}
print "<pre>$html</pre>";
} else {
header("Content-type: application/json");
print json_encode($data);
json::reply($data);
}
}