Small improvement on seekers caching of image files.

This commit is contained in:
skeeter 2001-12-29 18:10:31 +00:00
parent 30d0030b13
commit 128a03f3c9

View File

@ -845,16 +845,30 @@
$image_found = $this->find_image($appname,$image[$i]); $image_found = $this->find_image($appname,$image[$i]);
$c_image = count($image); $c_image = count($image);
while($image_found == '' && $i<$c_image) while($image_found == '' && $i<$c_image)
{
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]); $image_found = $this->find_image($appname,$image[$i]);
}
$i++; $i++;
} }
return $image_found; return $image_found;
} }
elseif($image != '') elseif($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); return $this->find_image($appname,$image);
} }
}
else else
{ {
return ''; return '';