aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-28 21:15:43 -0700
committerfriendica <info@friendica.com>2012-06-28 21:15:43 -0700
commit0ecba605030dfa8a69e7c0483732b17cd5c3c0a2 (patch)
tree79aed6841f11bf41795c01bed64162c202072f89
parent1830ecc9baa13b7d28f6a8250832832f2cc6a537 (diff)
downloadvolse-hubzilla-0ecba605030dfa8a69e7c0483732b17cd5c3c0a2.tar.gz
volse-hubzilla-0ecba605030dfa8a69e7c0483732b17cd5c3c0a2.tar.bz2
volse-hubzilla-0ecba605030dfa8a69e7c0483732b17cd5c3c0a2.zip
undefined fn
-rw-r--r--mod/parse_url.php4
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) {