Encode des messages d'erreur lors de l'installation
This commit is contained in:
parent
47c98e25e4
commit
832e0b535f
@ -292,7 +292,7 @@ class install extends common
|
|||||||
'display' => self::DISPLAY_JSON,
|
'display' => self::DISPLAY_JSON,
|
||||||
'content' => [
|
'content' => [
|
||||||
'success' => $success,
|
'success' => $success,
|
||||||
'data' => $success ? null : json_encode($message)
|
'data' => $success ? null : json_encode($message, JSON_UNESCAPED_UNICODE)
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
@ -307,7 +307,7 @@ class install extends common
|
|||||||
'display' => self::DISPLAY_JSON,
|
'display' => self::DISPLAY_JSON,
|
||||||
'content' => [
|
'content' => [
|
||||||
'success' => $md5origin[0] === $md5target,
|
'success' => $md5origin[0] === $md5target,
|
||||||
'data' => $md5origin[0] === $md5target ? null : json_encode('Erreur de téléchargement ou de somme de contrôle')
|
'data' => $md5origin[0] === $md5target ? null : json_encode('Erreur de téléchargement ou de somme de contrôle', JSON_UNESCAPED_UNICODE)
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
@ -402,7 +402,7 @@ class install extends common
|
|||||||
'display' => self::DISPLAY_JSON,
|
'display' => self::DISPLAY_JSON,
|
||||||
'content' => [
|
'content' => [
|
||||||
'success' => $success,
|
'success' => $success,
|
||||||
'data' => $message
|
'data' => json_encode($message, JSON_UNESCAPED_UNICODE)
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user