From 5d9e9aaaf5594334c5a7a80c34b2dae40276bad0 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 18 Jan 2015 02:48:39 +0100 Subject: [PATCH] Keep the old error message on updateAvatar --- plugins/OStatus/classes/Ostatus_profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5