oEmbed had bad variable reference in error message

This commit is contained in:
Mikael Nordfeldth 2017-07-10 20:28:35 +02:00
parent 6a2a54dcb5
commit 661930cbe6
1 changed files with 1 additions and 1 deletions

View File

@ -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)'));
}