From e76fa905e33ae5c261a65736a2b9614007f6e975 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Thu, 31 Mar 2005 08:13:37 +0000 Subject: [PATCH] Fixed installation bug --- config/index.php | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/index.php b/config/index.php index 7199c393b4..64bddeabc3 100644 --- a/config/index.php +++ b/config/index.php @@ -331,7 +331,7 @@ $conf->IP = dirname( dirname( __FILE__ ) ); print "
  • Installation directory: " . htmlspecialchars( $conf->IP ) . "
  • \n"; # $conf->ScriptPath = "/~brion/inplace"; -$conf->ScriptPath = preg_replace( '{^(.*)/config.*$}', '$1', $_SERVER["SCRIPT_NAME"] ); +$conf->ScriptPath = preg_replace( '{^(.*)/config.*$}', '$1', $_SERVER["PHP_SELF"] ); # was SCRIPT_NAME print "
  • Script URI path: " . htmlspecialchars( $conf->ScriptPath ) . "
  • \n"; $conf->posted = ($_SERVER["REQUEST_METHOD"] == "POST"); diff --git a/index.php b/index.php index 5972935a53..bc82eaf4bc 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ unset( $IP ); @ini_set( 'allow_url_fopen', 0 ); # For security... if( !file_exists( 'LocalSettings.php' ) ) { define( 'MEDIAWIKI', true ); - $IP = "127.0.0.1" ; + $IP = "." ; require_once( './includes/Defines.php' ); require_once( 'includes/DefaultSettings.php' ); # used for printing the version ?> -- 2.20.1