From: friendica Date: Fri, 29 Jun 2012 04:15:43 +0000 (-0700) Subject: undefined fn X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ecba605030dfa8a69e7c0483732b17cd5c3c0a2;p=friendica.git undefined fn --- diff --git a/mod/parse_url.php b/mod/parse_url.php index cdf2223a86..a38f7e2702 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) {