HOR-1471

HOR-1471
This commit is contained in:
Paula V. Quispe
2016-07-27 16:37:21 -04:00
parent 4e14ccc976
commit c3fb995759
79 changed files with 399 additions and 170 deletions

View File

@@ -343,9 +343,16 @@ try {
} else {
$result["addons"] = array();
}
echo G::json_encode($result);
G::outRes( G::json_encode($result) );
} catch (Exception $e) {
echo G::json_encode(array("success" => false, "errors" => $e->getMessage()));
$token = strtotime("now");
PMException::registerErrorLog($e, $token);
G::outRes(
G::json_encode(array(
"success" => false,
"errors" => G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token))
))
);
}

View File

@@ -186,5 +186,5 @@ if ($status == 0) {
$response["success"] = false;
}
echo G::json_encode($response);
G::outRes( G::json_encode($response) );