From e1603d01bbc3523b622db2f295400aa5a5f14509 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 11 Sep 2014 01:53:07 +0200 Subject: Bug 1052724: Use JSON::XS instead of Data::Dumper to store parameters into data/params r=dkl r=wurblzap a=sgreen --- Bugzilla.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index e1f2fde3b..7d935db48 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -122,8 +122,8 @@ sub init_page { # # This code must go here. It cannot go anywhere in Bugzilla::CGI, because # it uses Template, and that causes various dependency loops. - if (Bugzilla->params->{"shutdownhtml"} - && !grep { $_ eq $script } SHUTDOWNHTML_EXEMPT) + if (!grep { $_ eq $script } SHUTDOWNHTML_EXEMPT + and Bugzilla->params->{'shutdownhtml'}) { # Allow non-cgi scripts to exit silently (without displaying any # message), if desired. At this point, no DBI call has been made @@ -939,9 +939,9 @@ Change the database object to refer to the main database. =item C -The current Parameters of Bugzilla, as a hashref. If C -does not exist, then we return an empty hashref. If C -is unreadable or is not valid perl, we C. +The current Parameters of Bugzilla, as a hashref. If C +does not exist, then we return an empty hashref. If C +is unreadable or is not valid, we C. =item C -- cgit v1.2.3-24-g4f1b