From 85254446a1d482496a2b619d028533e885ca77e6 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 7 May 2014 14:11:07 -0400 Subject: Retrieve current theme before attempting to reference the theme, otherwise it is blank on a plain installation. Bump version. Fixes #3503 --- config/mailreport/mail_reports.inc | 2 ++ config/mailreport/mailreport.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/mailreport/mail_reports.inc b/config/mailreport/mail_reports.inc index aa2bc3ce..5d9e74b2 100644 --- a/config/mailreport/mail_reports.inc +++ b/config/mailreport/mail_reports.inc @@ -240,7 +240,9 @@ function mail_report_generate_graph($database, $style, $graph, $start, $end) { require_once("filter.inc"); require_once("shaper.inc"); require_once("rrd.inc"); + require_once("util.inc"); global $g; + $g['theme'] = get_current_theme(); $pgtitle = array(gettext("System"),gettext("RRD Graphs"),gettext("Image viewer")); diff --git a/config/mailreport/mailreport.xml b/config/mailreport/mailreport.xml index fe0b98b6..fe6899d4 100644 --- a/config/mailreport/mailreport.xml +++ b/config/mailreport/mailreport.xml @@ -37,7 +37,7 @@ ]]> mailreport - 2.0.10 + 2.0.11 Status: Email Reports /usr/local/bin/ -- cgit v1.2.3