BUG 0000 Changing use of json_encode native

Modified now use the G:json_encode instead
This commit is contained in:
Hugo Loza
2011-09-01 08:52:34 -04:00
parent 891cdf3319
commit 919968c3bf

View File

@@ -2,14 +2,14 @@
if (!isset($_REQUEST ['action'])) {
$res ['success'] = 'failure';
$res ['message'] = 'You may request an action';
print json_encode($res);
print G::json_encode($res);
die ();
}
if (!function_exists($_REQUEST ['action'])) {
$res ['success'] = 'failure';
$res ['message'] = 'The requested action doesn\'t exists';
header("Content-Type: application/json");
print json_encode($res);
print G::json_encode($res);
die ();
}
@@ -29,7 +29,7 @@ function getExtJSParams() {
function sendJsonResultGeneric($response, $callback) {
header("Content-Type: application/json");
$finalResponse = json_encode($response);
$finalResponse = G::json_encode($response);
if ($callback != '') {
print $callback . "($finalResponse);";
} else {