From 0bbbad3a8c6c5892d95008d7174b357e8c977529 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 8 Feb 2018 10:10:00 +0100 Subject: [PATCH] Allow custom theme for mobile template --- api/src/Framework.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Framework.php b/api/src/Framework.php index c0b8c0b0e7..c4e03f0d86 100644 --- a/api/src/Framework.php +++ b/api/src/Framework.php @@ -841,6 +841,7 @@ abstract class Framework extends Framework\Extra $themes_to_check = array(); if (Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'fw_mobile') { + $themes_to_check[] = $this->template_dir.'/mobile/'.$GLOBALS['egw_info']['user']['preferences']['common']['theme'].'.css'; $themes_to_check[] = $this->template_dir.'/mobile/fw_mobile.css'; } $themes_to_check[] = $this->template_dir.'/css/'.$GLOBALS['egw_info']['user']['preferences']['common']['theme'].'.css';