fix for not show images in infolog

This commit is contained in:
Ralf Becker 2003-09-13 21:57:20 +00:00
parent 9c19f4d33c
commit 49ddd048eb

View File

@ -271,15 +271,12 @@ class html
function image( $app,$name,$title='',$options='' )
{
if (strstr($name,'.') === False)
{
$name .= '.gif';
}
if (!($path = $GLOBALS['phpgw']->common->image($app,$name)))
{
$path = $name; // name may already contain absolut path
}
if (!@is_readable($_SERVER['DOCUMENT_ROOT'] . $path))
// as some webservers does not report there DOCUMENT_ROOT starting with a '/', we just add one
if (!@is_readable('/'.$_SERVER['DOCUMENT_ROOT'] . $path))
{
return $title;
}