1
0
miroir de https://github.com/nextcloud/server.git synchronisé 2024-08-13 02:10:44 +02:00

Have the "notsquare" error as data, not as message

Cette révision appartient à :
kondou 2013-09-06 13:46:50 +02:00
Parent 221bbd275c
révision d18a070a03
2 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -71,7 +71,7 @@ class Controller {
if ($image->valid()) {
\OC_Cache::set('tmpavatar', $image->data(), 7200);
\OC_JSON::error(array("data" => array("message" => "notsquare") ));
\OC_JSON::error(array("data" => "notsquare"));
} else {
$l = new \OC_L10n('core');

Voir le fichier

@ -108,7 +108,7 @@ function avatarResponseHandler(data) {
$warning.hide();
if (data.status === "success") {
updateAvatar();
} else if (data.data.message === "notsquare") {
} else if (data.data === "notsquare") {
showAvatarCropper();
} else {
$warning.show();