diff --git a/etemplate/inc/class.html.inc.php b/etemplate/inc/class.html.inc.php
index 9cd4c86ece..d05887ba7a 100644
--- a/etemplate/inc/class.html.inc.php
+++ b/etemplate/inc/class.html.inc.php
@@ -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;
}