mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
fix for not show images in infolog
This commit is contained in:
parent
9c19f4d33c
commit
49ddd048eb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user