diff options
author | lpsolit%gmail.com <> | 2005-07-22 14:13:36 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-07-22 14:13:36 +0200 |
commit | e7d2b86c2765c3a8e853526683ceacdb260a7996 (patch) | |
tree | 90fc70fd199e7bfc5ae5656ceadafbe6c8afe4d7 /doeditparams.cgi | |
parent | d0303ab3ecb54eef2ed1b5e55839eada16748416 (diff) | |
download | bugzilla-e7d2b86c2765c3a8e853526683ceacdb260a7996.tar.gz bugzilla-e7d2b86c2765c3a8e853526683ceacdb260a7996.tar.xz |
Bug 301507: Move PutHeader and PutFooter into Template.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=justdave
Diffstat (limited to 'doeditparams.cgi')
-rwxr-xr-x | doeditparams.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doeditparams.cgi b/doeditparams.cgi index 028f28a60..431aa91c2 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -35,6 +35,7 @@ require "CGI.pl"; Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; +my $template = Bugzilla->template; print $cgi->header(); @@ -43,7 +44,7 @@ UserInGroup("tweakparams") action => "modify", object => "parameters"}); -PutHeader("Saving new parameters"); +$template->put_header("Saving new parameters"); my $howto = ""; @@ -90,7 +91,7 @@ foreach my $i (GetParamList()) { print "New value for " . html_quote($name) . " is invalid: $ok<p>\n"; print "Please hit <b>Back</b> and try again.\n"; - PutFooter(); + $template->put_footer(); exit; } } @@ -115,4 +116,4 @@ print $howto; print "<a href=\"editparams.cgi\">Edit the params some more.</a><p>\n"; print "<a href=\"query.cgi\">Go back to the query page.</a>\n"; -PutFooter(); +$template->put_footer(); |