From b8ec302b3a99b54f5838e497adb1cabe3f2f15dd Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 21 Sep 2008 23:40:40 +0000 Subject: Bug 398075: Bugzilla should be able to display the "shutdownhtml" message even if the SQL server is down - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/global/field-descs.none.tmpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'template/en/default/global/field-descs.none.tmpl') diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index f669df6df..7d89bd5c2 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -91,10 +91,12 @@ database. If you want to override this for your language or your installation, just use a hook. %] -[% USE Bugzilla %] -[% FOREACH bz_field = Bugzilla.get_fields() %] - [% SET field_descs.${bz_field.name} = bz_field.description - IF !field_descs.${bz_field.name}.defined %] +[% UNLESS Param('shutdownhtml') %] + [% USE Bugzilla %] + [% FOREACH bz_field = Bugzilla.get_fields() %] + [% SET field_descs.${bz_field.name} = bz_field.description + IF !field_descs.${bz_field.name}.defined %] + [% END %] [% END %] [% field_types = { ${constants.FIELD_TYPE_UNKNOWN} => "Unknown Type", -- cgit v1.2.3-24-g4f1b