summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-03-06 01:33:37 +0100
committerlpsolit%gmail.com <>2007-03-06 01:33:37 +0100
commitae1857494e5bc3dc6a4b87c0e0e329c0c76108bc (patch)
tree3a3a41ac2b814d38c09c5365d60ae2f7a296261b /Bugzilla
parent439851b43d129eaa04b2d29438956db8add6de30 (diff)
downloadbugzilla-ae1857494e5bc3dc6a4b87c0e0e329c0c76108bc.tar.gz
bugzilla-ae1857494e5bc3dc6a4b87c0e0e329c0c76108bc.tar.xz
Bug 312197: Templatize sanitycheck.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm38
1 files changed, 0 insertions, 38 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 800536cd5..42c45823e 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -187,22 +187,6 @@ sub getTemplateIncludePath {
return Bugzilla->request_cache->{"template_include_path_$lang"};
}
-sub put_header {
- my $self = shift;
- my $vars = {};
- ($vars->{'title'}, $vars->{'h1'}, $vars->{'h2'}) = (@_);
-
- $self->process("global/header.html.tmpl", $vars)
- || ThrowTemplateError($self->error());
- $vars->{'header_done'} = 1;
-}
-
-sub put_footer {
- my $self = shift;
- $self->process("global/footer.html.tmpl")
- || ThrowTemplateError($self->error());
-}
-
sub get_format {
my $self = shift;
my ($template, $format, $ctype) = @_;
@@ -924,10 +908,6 @@ Bugzilla::Template - Wrapper around the Template Toolkit C<Template> object
=head1 SYNOPSIS
my $template = Bugzilla::Template->create;
-
- $template->put_header($title, $h1, $h2);
- $template->put_footer();
-
my $format = $template->get_format("foo/bar",
scalar($cgi->param('format')),
scalar($cgi->param('ctype')));
@@ -960,24 +940,6 @@ Returns: nothing
=over
-=item C<put_header($title, $h1, $h2)>
-
- Description: Display the header of the page for non yet templatized .cgi files.
-
- Params: $title - Page title.
- $h1 - Main page header.
- $h2 - Page subheader.
-
- Returns: nothing
-
-=item C<put_footer()>
-
- Description: Display the footer of the page for non yet templatized .cgi files.
-
- Params: none
-
- Returns: nothing
-
=item C<get_format($file, $format, $ctype)>
Description: Construct a format object from URL parameters.