Mobile theme W.I.P.:

- Set image map cache name separately for mobile
This commit is contained in:
Hadi Nategh 2016-04-05 07:46:34 +00:00
parent d99b06294d
commit fa60745e8e

View File

@ -136,7 +136,8 @@ class Image
{ {
$svg = self::svg_usable(); $svg = self::svg_usable();
} }
$cache_name = 'image_map_'.$template_set.($svg ? '_svg' : '');
$cache_name = 'image_map_'.$template_set.($svg ? '_svg' : '').(Header\UserAgent::mobile() ? '_mobile' : '');
if (($map = Cache::getInstance(__CLASS__, $cache_name))) if (($map = Cache::getInstance(__CLASS__, $cache_name)))
{ {
return $map; return $map;