mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Small improvement on seekers caching of image files.
This commit is contained in:
parent
30d0030b13
commit
128a03f3c9
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user