(bug 30264) MediaWiki installer uses require, de facto is require_once
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 9 Aug 2011 13:59:36 +0000 (13:59 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 9 Aug 2011 13:59:36 +0000 (13:59 +0000)
RELEASE-NOTES-1.19
includes/installer/LocalSettingsGenerator.php

index 4d3f0f3..25c619f 100644 (file)
@@ -38,6 +38,8 @@ production.
   div#bodyContent.
 * (bug 30172) The check for posix_isatty() in maintenance scripts did not detect
   when the function exists but is disabled. Introduced Maintenance::posix_isatty()
+* (bug 30264) Changed installer-generated LocalSettings.php to use require_once()
+  instead require() for included extensions.
 
 === API changes in 1.19 ===
 * (bug 19838) siprop=interwikimap can now use the interwiki cache.
index 64def40..df3192c 100644 (file)
@@ -129,7 +129,7 @@ class LocalSettingsGenerator {
 
                        foreach( $this->extensions as $extName ) {
                                $encExtName = self::escapePhpString( $extName );
-                               $localSettings .= "require( \"extensions/$encExtName/$encExtName.php\" );\n";
+                               $localSettings .= "require_once( \"extensions/$encExtName/$encExtName.php\" );\n";
                        }
                }