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

@ -846,14 +846,28 @@
$c_image = count($image); $c_image = count($image);
while($image_found == '' && $i<$c_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++; $i++;
} }
return $image_found; return $image_found;
} }
elseif($image != '') 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 else
{ {