From 128a03f3c954fe1aaf4096cd2db468dbcfb5ecdd Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 29 Dec 2001 18:10:31 +0000 Subject: [PATCH] Small improvement on seekers caching of image files. --- phpgwapi/inc/class.common.inc.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index af6b4adb7c..d796af8f2e 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -846,14 +846,28 @@ $c_image = count($image); while($image_found == '' && $i<$c_image) { - $image_found = $this->find_image($appname,$image[$i]); + if($this->found_files[$appname]['images'][$image[$i]]) + { + $image_found = $GLOBALS['phpgw_info']['server']['webserver_url'].$this->found_files[$appname]['images'][$image[$i]].'/'.$image[$i]; + } + else + { + $image_found = $this->find_image($appname,$image[$i]); + } $i++; } return $image_found; } elseif($image != '') { - return $this->find_image($appname,$image); + if($this->found_files[$appname]['images'][$image]) + { + return $GLOBALS['phpgw_info']['server']['webserver_url'].$this->found_files[$appname]['images'][$image].'/'.$image; + } + else + { + return $this->find_image($appname,$image); + } } else {