Do not assume that the current working dir is phase3/config
authorPlatonides <platonides@users.mediawiki.org>
Mon, 13 Dec 2010 15:49:05 +0000 (15:49 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 13 Dec 2010 15:49:05 +0000 (15:49 +0000)
config/index.php

index 9c395e5..e394a04 100644 (file)
@@ -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();