image shows title if image is not found

This commit is contained in:
Ralf Becker 2002-10-17 22:07:00 +00:00
parent 56acf9ae94
commit f994c57a1f

View File

@ -264,6 +264,10 @@ class html
{
$path = $name; // name may already contain absolut path
}
if (!@is_readable($GLOBALS['DOCUMENT_ROOT'] . $path))
{
return $title;
}
if ($title)
{
$options .= " $this->prefered_img_title=\"$title\"";