From fc6aa3c91fdcb1d9f11d05d9f13d1da8fce15b45 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Sun, 24 Mar 2002 01:58:36 +0000 Subject: Bug 110012 - show_bug templatisation. r=bbaetz, afranke. --- show_bug.cgi | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) (limited to 'show_bug.cgi') diff --git a/show_bug.cgi b/show_bug.cgi index 28eb66763..f832a2930 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -26,6 +26,7 @@ use strict; use lib qw(.); require "CGI.pl"; +require "bug_form.pl"; ConnectToDatabase(); @@ -49,32 +50,8 @@ if (defined ($::FORM{'id'})) { # End Data/Security Validation ###################################################################### -print "Content-type: text/html\n"; -print "\n"; - -if (!defined $::FORM{'id'}) { - PutHeader("Search by bug number"); - print "
\n"; - print "You may find a single bug by entering its bug id here: \n"; - print "\n"; - print "\n"; - print "
\n"; - PutFooter(); - exit; -} - GetVersionTable(); -# Get the bug's summary (short description) and display it as -# the page title. -SendSQL("SELECT short_desc FROM bugs WHERE bug_id = $::FORM{'id'}"); -my ($summary) = FetchSQLData(); -$summary = html_quote($summary); -PutHeader("Bug $::FORM{'id'} - $summary", "Bugzilla Bug $::FORM{'id'}", $summary, "", navigation_links() ); - -navigation_header(); - -print "
\n"; +print "Content-type: text/html\n\n"; -$! = 0; -do "bug_form.pl" || die "Error doing bug_form.pl: $!"; +show_bug(); -- cgit v1.2.3-24-g4f1b