aboutsummaryrefslogtreecommitdiffstats
path: root/mod/parse_url.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-05 21:41:58 -0700
committerfriendica <info@friendica.com>2012-08-05 21:41:58 -0700
commitc673c70c25143f18b2ef6aef9ee6633d0eac46ae (patch)
treea5e242bc114a08cd7a46868e56f5159075f3e7fe /mod/parse_url.php
parent4f645992100a9c2a9877548b37cf4f78b4c6a160 (diff)
downloadvolse-hubzilla-c673c70c25143f18b2ef6aef9ee6633d0eac46ae.tar.gz
volse-hubzilla-c673c70c25143f18b2ef6aef9ee6633d0eac46ae.tar.bz2
volse-hubzilla-c673c70c25143f18b2ef6aef9ee6633d0eac46ae.zip
updates
Diffstat (limited to 'mod/parse_url.php')
-rw-r--r--mod/parse_url.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php
index 5dd7de750..ea05055f0 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -176,6 +176,9 @@ function parseurl_getsiteinfo($url) {
}
} else {
$src = completeurl($siteinfo["image"], $url);
+
+ unset($siteinfo["image"]);
+
$photodata = getimagesize($src);
if (($photodata[0] > 10) and ($photodata[1] > 10))
@@ -292,8 +295,7 @@ function parse_url_content(&$a) {
$siteinfo = parseurl_getsiteinfo($url);
if($siteinfo["title"] == "") {
- echo print_r($siteinfo, true);
- //echo sprintf($template,$url,$url,'') . $str_tags;
+ echo sprintf($template,$url,$url,'') . $str_tags;
killme();
} else {
$text = $siteinfo["text"];
@@ -302,7 +304,7 @@ function parse_url_content(&$a) {
$image = "";
- if($siteinfo["image"] != ""){
+ if(sizeof($siteinfo["images"]) > 0){
/*
Execute below code only if image is present in siteinfo
*/