]> git.mxchange.org Git - friendica.git/commitdiff
undefined fn
authorfriendica <info@friendica.com>
Fri, 29 Jun 2012 04:15:43 +0000 (21:15 -0700)
committerfriendica <info@friendica.com>
Fri, 29 Jun 2012 04:15:43 +0000 (21:15 -0700)
mod/parse_url.php

index cdf2223a866d677c2598614b4c8e185c6b480154..a38f7e27027ea2923bd2cae777f9bdd26793e214 100644 (file)
@@ -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) {