From ce58542f3d7b5e8ae1a8fb88158245d9a2e8d963 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 10 Jan 2017 11:42:18 -0700 Subject: [PATCH] Update notification popup to fit theme better --- calendar/inc/class.calendar_boupdate.inc.php | 4 ++++ notifications/inc/hook_after_navbar.inc.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index e42da056aa..41937d68e6 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -934,6 +934,10 @@ class calendar_boupdate extends calendar_bo Api\Translation::init(); $lang = $part_prefs['common']['lang']; } + + // Since we're running from cron, make sure notifications uses user's theme (for images) + $GLOBALS['egw_info']['server']['template_set'] = $GLOBALS['egw_info']['user']['preferences']['common']['template_set']; + $event_arr = null; $details = $this->_get_event_details(isset($cleared_event) ? $cleared_event : $event, $action, $event_arr, $disinvited); diff --git a/notifications/inc/hook_after_navbar.inc.php b/notifications/inc/hook_after_navbar.inc.php index 07e18665a8..3197238c7e 100644 --- a/notifications/inc/hook_after_navbar.inc.php +++ b/notifications/inc/hook_after_navbar.inc.php @@ -25,11 +25,11 @@ if ($GLOBALS['egw_info']['user']['apps']['notifications']) echo ' ';