upstream fixes
This commit is contained in:
parent
236ba8badc
commit
1f313eba50
11
boot.php
11
boot.php
@ -1687,3 +1687,14 @@ function build_querystring($params, $name=null) {
|
|||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// much better way of dealing with c-style args
|
||||||
|
|
||||||
|
function argc() {
|
||||||
|
return get_app()->argc;
|
||||||
|
}
|
||||||
|
|
||||||
|
function argv($x) {
|
||||||
|
return get_app()->argv[$x];
|
||||||
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -302,11 +302,16 @@ function parse_url_content(&$a) {
|
|||||||
|
|
||||||
$image = "";
|
$image = "";
|
||||||
|
|
||||||
foreach ($siteinfo["images"] as $imagedata)
|
if($siteinfo["image"] != ""){
|
||||||
|
/*
|
||||||
|
Execute below code only if image is present in siteinfo
|
||||||
|
*/
|
||||||
|
foreach ($siteinfo["images"] as $imagedata)
|
||||||
if($textmode)
|
if($textmode)
|
||||||
$image .= '[img='.$imagedata["width"].'x'.$imagedata["height"].']'.$imagedata["src"].'[/img]';
|
$image .= '[img='.$imagedata["width"].'x'.$imagedata["height"].']'.$imagedata["src"].'[/img]';
|
||||||
else
|
else
|
||||||
$image .= '<img height="'.$imagedata["height"].'" width="'.$imagedata["width"].'" src="'.$imagedata["src"].'" alt="photo" />';
|
$image .= '<img height="'.$imagedata["height"].'" width="'.$imagedata["width"].'" src="'.$imagedata["src"].'" alt="photo" />';
|
||||||
|
}
|
||||||
|
|
||||||
if(strlen($text)) {
|
if(strlen($text)) {
|
||||||
if($textmode)
|
if($textmode)
|
||||||
|
Reference in New Issue
Block a user