$GLOBALS['egw_info']['flags']['deny_mobile'] to disable new 16.1 mobile support

This commit is contained in:
Ralf Becker 2016-05-23 14:23:19 +02:00
parent ad78f6a7ac
commit 9f615386d8

View File

@ -102,7 +102,8 @@ abstract class Framework extends Framework\Extra
{
// we prefer Pixelegg template, if it is available
if (file_exists(EGW_SERVER_ROOT.'/pixelegg') &&
(Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'mobile' ||
(empty($GLOBALS['egw_info']['flags']['deny_mobile']) && Header\UserAgent::mobile() ||
$GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'mobile' ||
empty($GLOBALS['egw_info']['server']['template_set'])))
{
$GLOBALS['egw_info']['server']['template_set'] = 'pixelegg';