* In LocalSettingsGenerator, fixed PHP escaping of extension name.
);
if( count( $this->getVar( '_Extensions' ) ) ) {
array_unshift( $installSteps,
- array( 'extensions', array( $this, 'includeExtensions' ) )
+ array( 'name' => 'extensions', 'callback' => array( $this, 'includeExtensions' ) )
);
}
foreach( $installSteps as $idx => $stepObj ) {
if( count( $this->extensions ) ) {
$localSettings .= "\n# The following extensions were automatically enabled:\n";
- foreach( $this->extensions as $ext ) {
- $localSettings .= "require( 'extensions/$ext/$ext.php' );\n";
+ foreach( $this->extensions as $extName ) {
+ $encExtName = self::escapePhpString( $extName );
+ $localSettings .= "require( \"extensions/$encExtName/$encExtName.php\" );\n";
}
}