From f2656de206032e35e2a592a26ac3285df7aa4ae2 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 14 Dec 2004 07:55:26 +0000 Subject: [PATCH] Using modern variables. git-svn-id: https://develop.svn.wordpress.org/trunk@1948 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'];