diff options
Diffstat (limited to 'mod/parse_url.php')
-rw-r--r-- | mod/parse_url.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php index cdf2223a8..a38f7e270 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -215,10 +215,10 @@ function parse_url_content(&$a) { $i = fetch_url($image); if($i) { + require_once('include/Photo.php'); // guess mimetype from headers or filename $type = guess_image_type($image,true); - - require_once('include/Photo.php'); + $ph = new Photo($i, $type); if($ph->is_valid()) { if($ph->getWidth() > 300 || $ph->getHeight() > 300) { |