50
« on: September 20, 2011, 01:57:27 PM »
Will it right if i will change in step 6.3 ?????
/*
MOD MULTI-LIGHTBOXES
START INSERT
*/function lightbox_trim($name)
{
$max = 10;
if (strlen($name) > $max)
{
$name = substr($name, 0, $max)."...";
}
return $name;
}
function fixhtml($text, $quotes = 1, $amp = 0)
{
if ($amp) $text = str_replace("&", "&", $text);
if ($quote) $text = str_replace("\"", """, $text);
$text = str_replace("<", "<", str_replace(">", ">", $text));
return $text;
}
/*
MOD MULTI-LIGHTBOXES
END INSERT
*/
This line:
if ($quote) $text = str_replace("\"", """, $text);
By this line:
if ($quotes) $text = str_replace("\"", """, $text);