r63634 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63633‎ | r63634 | r63635 >
Date:17:50, 12 March 2010
Author:demon
Status:ok
Tags:
Comment:
Also check for $wgAutoloadClasses when loading extensions, and fix path to extensions for LocalSettings generation
Modified paths:
  • /branches/new-installer/phase3/includes/installer/LocalSettings.php (modified) (history)
  • /branches/new-installer/phase3/includes/installer/WebInstaller.php (modified) (history)

Diff [purge]

Index: branches/new-installer/phase3/includes/installer/LocalSettings.php
@@ -61,7 +61,7 @@
6262 if( count( $this->extensions ) ) {
6363 $localSettings .= "\n# The following extensions were automatically enabled:\n";
6464 foreach( $this->extensions as $ext ) {
65 - $localSettings .= "require( '$ext/$ext.php' );\n";
 65+ $localSettings .= "require( 'extensions/$ext/$ext.php' );\n";
6666 }
6767 }
6868 return file_put_contents( $this->configPath . '/LocalSettings.php', $localSettings );
Index: branches/new-installer/phase3/includes/installer/WebInstaller.php
@@ -1466,7 +1466,7 @@
14671467 // Extensions
14681468 $exts = $this->parent->getVar( '_Extensions' );
14691469 if( count( $exts ) ) {
1470 - global $wgHooks;
 1470+ global $wgHooks, $wgAutoloadClasses;
14711471 $this->startStage( 'config-install-extensions' );
14721472 $path = $this->getVar( 'IP' ) . '/extensions';
14731473 foreach( $exts as $e ) {

Status & tagging log