From 33d3914a58ac4981c5ba4aea65240ca221227a14 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Tue, 14 Dec 2004 07:55:26 +0000 Subject: [PATCH] Using modern variables. git-svn-id: http://svn.automattic.com/wordpress/trunk@1948 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index e386ac193c..29c4e9cfe0 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -4,9 +4,9 @@ if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file."); require_once('../wp-config.php'); -require('./upgrade-functions.php'); +require_once('./upgrade-functions.php'); -$guessurl = str_replace('/wp-admin/install.php?step=2', '', 'http://' . $HTTP_HOST . $REQUEST_URI); +$guessurl = str_replace('/wp-admin/install.php?step=2', '', 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) ); if (isset($_GET['step'])) $step = $_GET['step'];