From f5ed66280b09787b65d3761faf4a3f915e51a92f Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 15 Dec 2015 12:30:35 +0100 Subject: [PATCH] $url should've been $file->getUrl() --- plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php b/plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php index 25f3b31f71..e3b95410be 100644 --- a/plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php +++ b/plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php @@ -78,10 +78,10 @@ class StoreRemoteMediaPlugin extends Plugin // First we download the file to memory and test whether it's actually an image file $imgData = HTTPClient::quickGet($file->getUrl()); - common_debug(sprintf('Downloading remote file id==%u with URL: %s', $file->id, $file->url)); + common_debug(sprintf('Downloading remote file id==%u with URL: %s', $file->id, $file->getUrl())); $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.'), $file->getUrl()); } elseif (!$info[0] || !$info[1]) { throw new UnsupportedMediaException(_('Image file had impossible geometry (0 width or height)')); } -- 2.39.2