From e00a2bc886f86638a600030ebf98877db7a059fd Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 20 Mar 2007 02:39:14 +0000 Subject: Bug 374330: Make it possible for installation templates to be text or HTML Patch By Max Kanat-Alexander (module owner) a=mkanat --- setup.cgi | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'setup.cgi') diff --git a/setup.cgi b/setup.cgi index c31db382c..7b4aa4554 100644 --- a/setup.cgi +++ b/setup.cgi @@ -10,7 +10,7 @@ # rights and limitations under the License. # # The Initial Developer of the Original Code is Everything Solved. -# Portions created by Everything Solved are Copyright (C) 2006 +# Portions created by Everything Solved are Copyright (C) 2007 # Everything Solved. All Rights Reserved. # # The Original Code is the Bugzilla Bug Tracking System. @@ -20,6 +20,9 @@ use strict; use lib "."; +################# +# Initial Setup # +################# # The order of these "use" statements is important--we have to have # CGI before we have CGI::Carp. Without CGI::Carp, "use 5.008" will just throw @@ -37,14 +40,22 @@ use 5.008; use Bugzilla::Constants; require 5.008001 if ON_WINDOWS; use Bugzilla::Install::Requirements; -use Bugzilla::Install::Util qw(display_version_and_os); +use Bugzilla::Install::Util qw(install_string get_version_and_os); local $| = 1; my $cgi = new CGI; $cgi->charset('UTF-8'); -print $cgi->header(-type => 'text/plain'); +print $cgi->header(); +print install_string('header', get_version_and_os()); -display_version_and_os(); +###################### +# Check Requirements # +###################### + +print '
';
 my $module_results = check_requirements(1);
-Bugzilla::Install::Requirements::print_module_instructions($module_results, 1);
\ No newline at end of file
+Bugzilla::Install::Requirements::print_module_instructions($module_results, 1);
+print '
'; + +print install_string('footer'); \ No newline at end of file -- cgit v1.2.3-24-g4f1b