From a2dd3b00284fd4724d3408274cb1156c7a77d187 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 24 Oct 2009 05:21:06 +0000 Subject: Bug 520948: Use Bugzilla->feature and feature_enabled everywhere instead of checking if modules are installed Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- report.cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'report.cgi') diff --git a/report.cgi b/report.cgi index 2f950948a..ca92fafc6 100755 --- a/report.cgi +++ b/report.cgi @@ -95,6 +95,10 @@ if (defined $cgi->param('format') && $cgi->param('format') eq "table") { } } else { + if (!Bugzilla->feature('graphical_reports')) { + ThrowCodeError('feature_disabled', { feature => 'graphical_reports' }); + } + if ($row_field && !$col_field) { # 1D *charts* should be displayed horizontally (with an col_field only) $col_field = $row_field; -- cgit v1.2.3-24-g4f1b