From c7c3ba3e662b58c3ee2eefae9533fed0eab8d1b1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 22 Apr 2003 23:59:21 +0000 Subject: [PATCH] fix for HEAD, find_image does no longer lock in the api for not found images --- etemplate/inc/class.html.inc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/etemplate/inc/class.html.inc.php b/etemplate/inc/class.html.inc.php index 7a6956d4ba..f80e617e61 100644 --- a/etemplate/inc/class.html.inc.php +++ b/etemplate/inc/class.html.inc.php @@ -113,11 +113,9 @@ class html { if ($image != '') { - if (strstr($image,'.') === False) - { - $image .= '.gif'; - } - if (!($path = $GLOBALS['phpgw']->common->image($app,$image))) + if (strpos($image,'.')) $image = substr($image,0,strpos($image,'.')); + if (!($path = $GLOBALS['phpgw']->common->image($app,$image)) && + !($path = $GLOBALS['phpgw']->common->image('phpgwapi',$image))) { $path = $image; // name may already contain absolut path }