mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 11:21:23 +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='' )
|
function image( $app,$name,$title='',$options='' )
|
||||||
{
|
{
|
||||||
if (strstr($name,'.') === False)
|
|
||||||
{
|
|
||||||
$name .= '.gif';
|
|
||||||
}
|
|
||||||
if (!($path = $GLOBALS['phpgw']->common->image($app,$name)))
|
if (!($path = $GLOBALS['phpgw']->common->image($app,$name)))
|
||||||
{
|
{
|
||||||
$path = $name; // name may already contain absolut path
|
$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;
|
return $title;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user