From fa60745e8e1501b01ab8b64723365a9ba9f105d5 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 5 Apr 2016 07:46:34 +0000 Subject: [PATCH] Mobile theme W.I.P.: - Set image map cache name separately for mobile --- api/src/Image.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Image.php b/api/src/Image.php index dcb3d3712f..0526654e96 100644 --- a/api/src/Image.php +++ b/api/src/Image.php @@ -136,7 +136,8 @@ class Image { $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))) { return $map;