Use require_once instead of include_once on the generated LocalSettings.php.
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 9 Sep 2004 05:08:47 +0000 (05:08 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 9 Sep 2004 05:08:47 +0000 (05:08 +0000)
If it doesn't work,  everything will break and there may be register_globals
problems, so let's make extra sure.

config/index.php

index aa7a2a1..8a99a02 100644 (file)
@@ -818,7 +818,7 @@ function writeLocalSettings( $conf ) {
 
 \$IP = \"{$slconf['IP']}\";
 ini_set( \"include_path\", \".$sep\$IP$sep\$IP/includes$sep\$IP/languages\" );
-include_once( \"DefaultSettings.php\" );
+require_once( \"DefaultSettings.php\" );
 
 # If PHP's memory limit is very low, some operations may fail.
 " . ($conf->raiseMemory ? '' : '# ' ) . "ini_set( 'memory_limit', '20M' );" . "