HOR-1471
HOR-1471 HOR-1471
This commit is contained in:
@@ -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))
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,5 +186,5 @@ if ($status == 0) {
|
||||
$response["success"] = false;
|
||||
}
|
||||
|
||||
echo G::json_encode($response);
|
||||
G::outRes( G::json_encode($response) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user