From: Platonides Date: Mon, 13 Dec 2010 15:49:05 +0000 (+0000) Subject: Do not assume that the current working dir is phase3/config X-Git-Tag: 1.31.0-rc.0~33338 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=commitdiff_plain;h=c9f8696d6e2a7a174128d3a29a13630b21e9fb68;p=lhc%2Fweb%2Fwiklou.git Do not assume that the current working dir is phase3/config --- diff --git a/config/index.php b/config/index.php index 9c395e5874..e394a0428a 100644 --- a/config/index.php +++ b/config/index.php @@ -8,8 +8,8 @@ define( 'MW_CONFIG_CALLBACK', 'CoreInstaller::overrideConfig' ); define( 'MEDIAWIKI_INSTALL', true ); -chdir( ".." ); -require( './includes/WebStart.php' ); +chdir( dirname( dirname( __FILE__ ) ) ); +require( dirname( dirname( __FILE__ ) ) . '/includes/WebStart.php' ); wfInstallerMain();