dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b1b6e
)
Use require_once instead of include_once on the generated LocalSettings.php.
author
Brion Vibber
<brion@users.mediawiki.org>
Thu, 9 Sep 2004 05:08:47 +0000
(
05:08
+0000)
committer
Brion 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
patch
|
blob
|
history
diff --git
a/config/index.php
b/config/index.php
index
aa7a2a1
..
8a99a02
100644
(file)
--- 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\" );
-
includ
e_once( \"DefaultSettings.php\" );
+
requir
e_once( \"DefaultSettings.php\" );
# If PHP's memory limit is very low, some operations may fail.
" . ($conf->raiseMemory ? '' : '# ' ) . "ini_set( 'memory_limit', '20M' );" . "