Second part of set_include_path patch
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 20 Dec 2005 19:31:34 +0000 (19:31 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 20 Dec 2005 19:31:34 +0000 (19:31 +0000)
config/index.php

index 17a3c72..043c8d1 100644 (file)
@@ -1144,7 +1144,9 @@ function writeLocalSettings( $conf ) {
 # file, not there.
 
 \$IP = \"{$slconf['IP']}\";
-ini_set( \"include_path\", \".$sep\$IP$sep\$IP/includes$sep\$IP/languages\" );
+if( !ini_set( \"include_path\", \".$sep\$IP$sep\$IP/includes$sep\$IP/languages\" ) ) {
+       set_include_path( \".$sep\$IP$sep\$IP/includes$sep\$IP/languages\" );
+}
 require_once( \"includes/DefaultSettings.php\" );
 
 # If PHP's memory limit is very low, some operations may fail.