git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 661930cb authored by mmn's avatar mmn

oEmbed had bad variable reference in error message

parent 6a2a54dc
......@@ -418,7 +418,7 @@ class OembedPlugin extends Plugin
$imgData = HTTPClient::quickGet($remoteUrl);
$info = @getimagesizefromstring($imgData);
if ($info === false) {
throw new UnsupportedMediaException(_('Remote file format was not identified as an image.'), $url);
throw new UnsupportedMediaException(_('Remote file format was not identified as an image.'), $remoteUrl);
} elseif (!$info[0] || !$info[1]) {
throw new UnsupportedMediaException(_('Image file had impossible geometry (0 width or height)'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment