From: Mikael Nordfeldth Date: Sun, 18 Jan 2015 01:48:39 +0000 (+0100) Subject: Keep the old error message on updateAvatar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d9e9aaaf5594334c5a7a80c34b2dae40276bad0;p=quix0rs-gnu-social.git Keep the old error message on updateAvatar --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 9e5e7b64c0..37d3dafa18 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -1267,7 +1267,7 @@ class Ostatus_profile extends Managed_DataObject if (!$response->isOk()) { // TRANS: Server exception. %s is a URL. - throw new ServerException(sprintf(_m('Unable to fetch avatar from %s.').':%s', $url, $response->getReasonPhrase())); + throw new ServerException(sprintf(_m('Unable to fetch avatar from %s.'), $url)); } // FIXME: make sure it's an image here instead of _after_ writing to a file? file_put_contents($response->getBody(), $temp_filename);