Keep the old error message on updateAvatar

This commit is contained in:
Mikael Nordfeldth 2015-01-18 02:48:39 +01:00
parent 010824c4b5
commit 5d9e9aaaf5

View File

@ -1267,7 +1267,7 @@ class Ostatus_profile extends Managed_DataObject
if (!$response->isOk()) { if (!$response->isOk()) {
// TRANS: Server exception. %s is a URL. // 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? // FIXME: make sure it's an image here instead of _after_ writing to a file?
file_put_contents($response->getBody(), $temp_filename); file_put_contents($response->getBody(), $temp_filename);