From 661930cbe6e240b438a25bcc9eefd59b187c5c3c Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 10 Jul 2017 20:28:35 +0200 Subject: [PATCH] oEmbed had bad variable reference in error message --- plugins/Oembed/OembedPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Oembed/OembedPlugin.php b/plugins/Oembed/OembedPlugin.php index 06e76404bc..6a277fe74c 100644 --- a/plugins/Oembed/OembedPlugin.php +++ b/plugins/Oembed/OembedPlugin.php @@ -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)')); } -- 2.39.5