for mobile devices prever $app/templates/mobile/images

This commit is contained in:
Ralf Becker 2016-03-08 13:10:03 +00:00
parent c76afa6e2d
commit 22d833affa

View File

@ -160,6 +160,10 @@ class Image
$app_map =& $map[$app];
if (true) $app_map = array();
$imagedirs = array();
if (html::$ua_mobile)
{
$imagedirs[] = '/'.$app.'/templates/mobile/images';
}
if ($app == 'phpgwapi')
{
$imagedirs[] = $GLOBALS['egw']->framework->template_dir.'/images';