summaryrefslogtreecommitdiffstats
path: root/setup.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-03-20 03:39:14 +0100
committermkanat%bugzilla.org <>2007-03-20 03:39:14 +0100
commite00a2bc886f86638a600030ebf98877db7a059fd (patch)
tree029bf1f1b4bf5170dfbb260c856aacfc36b6bd35 /setup.cgi
parentba5a5c404b8ef0b71efd873e604184ab90ebff94 (diff)
downloadbugzilla-e00a2bc886f86638a600030ebf98877db7a059fd.tar.gz
bugzilla-e00a2bc886f86638a600030ebf98877db7a059fd.tar.xz
Bug 374330: Make it possible for installation templates to be text or HTML
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'setup.cgi')
-rw-r--r--setup.cgi21
1 files changed, 16 insertions, 5 deletions
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 '<pre>';
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 '</pre>';
+
+print install_string('footer'); \ No newline at end of file