From: Brion Vibber Date: Thu, 9 Sep 2004 05:08:47 +0000 (+0000) Subject: Use require_once instead of include_once on the generated LocalSettings.php. X-Git-Tag: 1.5.0alpha1~2049 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=c17b6e3e780629de9321a35d1d8c27d6d51131fe;p=lhc%2Fweb%2Fwiklou.git Use require_once instead of include_once on the generated LocalSettings.php. If it doesn't work, everything will break and there may be register_globals problems, so let's make extra sure. --- diff --git a/config/index.php b/config/index.php index aa7a2a1a62..8a99a02450 100644 --- a/config/index.php +++ b/config/index.php @@ -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' );" . "