From 716c50f2e9b4f1a3f7c1cbacb7010b040f8515dc Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Mon, 13 May 2013 18:13:32 -0400 Subject: Clean up the install code a bit Remove lang/charset copypasta, unnecessary setting of $prefix, unnecessary constants. --- templates/install_header.inc.php | 1 - templates/show_install.inc.php | 3 +-- templates/show_install_account.inc.php | 3 +-- templates/show_install_config.inc.php | 12 +++++++----- templates/show_install_lang.inc.php | 3 +-- 5 files changed, 10 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/install_header.inc.php b/templates/install_header.inc.php index 8b5c6434..112ee4b2 100644 --- a/templates/install_header.inc.php +++ b/templates/install_header.inc.php @@ -20,7 +20,6 @@ * */ -$prefix = realpath(dirname(__FILE__). "/../"); ?> diff --git a/templates/show_install.inc.php b/templates/show_install.inc.php index 7350f431..dcbae665 100644 --- a/templates/show_install.inc.php +++ b/templates/show_install.inc.php @@ -20,7 +20,6 @@ * */ -$prefix = realpath(dirname(__FILE__). "/../"); require $prefix . '/templates/install_header.inc.php'; ?>
@@ -34,7 +33,7 @@ require $prefix . '/templates/install_header.inc.php';
-
" enctype="multipart/form-data" > + " enctype="multipart/form-data" > diff --git a/templates/show_install_account.inc.php b/templates/show_install_account.inc.php index e3a0a0d1..9baa2eeb 100644 --- a/templates/show_install_account.inc.php +++ b/templates/show_install_account.inc.php @@ -20,7 +20,6 @@ * */ -$prefix = realpath(dirname(__FILE__). "/../"); require $prefix . '/templates/install_header.inc.php'; ?>
@@ -33,7 +32,7 @@ require $prefix . '/templates/install_header.inc.php';
- " enctype="multipart/form-data" > + " enctype="multipart/form-data" >
diff --git a/templates/show_install_config.inc.php b/templates/show_install_config.inc.php index 9ec17b1f..ced21e38 100644 --- a/templates/show_install_config.inc.php +++ b/templates/show_install_config.inc.php @@ -20,7 +20,9 @@ * */ -$prefix = realpath(dirname(__FILE__). "/../"); +// Try to guess the web path +$web_path_guess = rtrim(dirname($_SERVER['PHP_SELF']), '\/'); + require $prefix . '/templates/install_header.inc.php'; ?>
@@ -35,11 +37,11 @@ require $prefix . '/templates/install_header.inc.php'; -" enctype="multipart/form-data" > +" enctype="multipart/form-data" >
- + @@ -90,13 +92,13 @@ require $prefix . '/templates/install_header.inc.php';
  - + []

- " enctype="multipart/form-data"> + " enctype="multipart/form-data">
diff --git a/templates/show_install_lang.inc.php b/templates/show_install_lang.inc.php index 8fa5240b..559b3957 100644 --- a/templates/show_install_lang.inc.php +++ b/templates/show_install_lang.inc.php @@ -20,7 +20,6 @@ * */ -$prefix = realpath(dirname(__FILE__). "/../"); require $prefix . '/templates/install_header.inc.php'; ?> @@ -30,7 +29,7 @@ require $prefix . '/templates/install_header.inc.php';

-
" enctype="multipart/form-data" > +" enctype="multipart/form-data" >