]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Keep the old error message on updateAvatar
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 18 Jan 2015 01:48:39 +0000 (02:48 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 18 Jan 2015 01:48:39 +0000 (02:48 +0100)
plugins/OStatus/classes/Ostatus_profile.php

index 9e5e7b64c075620f9e6150159616d5e97e151bcf..37d3dafa18bd4e63716c537c6c4091d3b1e88ce8 100644 (file)
@@ -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);