Bug fix from images

master
pecesama 2007-09-12 22:43:22 +00:00
parent a00b2a7d28
commit 22e1dd3387
1 changed files with 5 additions and 6 deletions

View File

@ -123,10 +123,10 @@
if ($x[0] > 500) { if ($x[0] > 500) {
$photoPath = $conf->urlGelato."/classes/imgsize.php?w=500&img=".$register["url"]; $photoPath = $conf->urlGelato."/classes/imgsize.php?w=500&img=".$register["url"];
} else { } else {
$photoPath = $register["url"]; $photoPath = str_replace("../", $conf->urlGelato."/", $register["url"]);
} }
$effect = " onclick=\"Lightbox.show('".$register["url"]."', '".strip_tags($register["description"])."');\" "; $effect = " onclick=\"Lightbox.show('".str_replace("../", $conf->urlGelato."/", $register["url"])."', '".strip_tags($register["description"])."');\" ";
$input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}");
$output = array($formatedDate, $permalink, $photoPath, strip_tags($register["description"]), $register["description"], $effect, $conf->urlGelato); $output = array($formatedDate, $permalink, $photoPath, strip_tags($register["description"]), $register["description"], $effect, $conf->urlGelato);
@ -213,11 +213,10 @@
if ($x[0] > 500) { if ($x[0] > 500) {
$photoPath = $conf->urlGelato."/classes/imgsize.php?w=500&img=".$register["url"]; $photoPath = $conf->urlGelato."/classes/imgsize.php?w=500&img=".$register["url"];
} else { } else {
//$photoPath = $register["url"];
$photoPath = str_replace("../", $conf->urlGelato."/", $register["url"]); $photoPath = str_replace("../", $conf->urlGelato."/", $register["url"]);
} }
$effect = " onclick=\"Lightbox.show('".$register["url"]."', '".strip_tags($register["description"])."');\" "; $effect = " onclick=\"Lightbox.show('".str_replace("../", $conf->urlGelato."/", $register["url"])."', '".strip_tags($register["description"])."');\" ";
$input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}");
$output = array($formatedDate, $permalink, $photoPath, strip_tags($register["description"]), $register["description"], $effect, $conf->urlGelato); $output = array($formatedDate, $permalink, $photoPath, strip_tags($register["description"]), $register["description"], $effect, $conf->urlGelato);