X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=blobdiff_plain;f=includes%2Finstaller%2FDatabaseUpdater.php;h=1f6110bd4478409f9688cf9ff0082155adb549c8;hb=2224e31507249e2ed86eae5f0beac731ee8a921c;hp=a2e9fc66a99351fb6720d320df73c2bd5d915206;hpb=21c6ae1163b07da7ac49938f50613c0e1cf262c3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index a2e9fc66a9..1f6110bd44 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -136,7 +136,7 @@ abstract class DatabaseUpdater { $wgExtPGAlteredFields, $wgExtNewIndexes, $wgExtModifiedFields; # For extensions only, should be populated via hooks - # $wgDBtype should be checked to specifiy the proper file + # $wgDBtype should be checked to specify the proper file $wgExtNewTables = []; // table, dir $wgExtNewFields = []; // table, column, dir $wgExtPGNewFields = []; // table, column, column attributes; for PostgreSQL @@ -150,7 +150,7 @@ abstract class DatabaseUpdater { * LoadExtensionSchemaUpdates hook. */ private function loadExtensions() { - if ( !defined( 'MEDIAWIKI_INSTALL' ) ) { + if ( !defined( 'MEDIAWIKI_INSTALL' ) || defined( 'MW_EXTENSIONS_LOADED' ) ) { return; // already loaded } $vars = Installer::getExistingLocalSettings(); @@ -162,7 +162,7 @@ abstract class DatabaseUpdater { // This will automatically add "AutoloadClasses" to $wgAutoloadClasses $data = $registry->readFromQueue( $queue ); - $hooks = [ 'wgHooks' => [ 'LoadExtensionSchemaUpdates' => [] ] ]; + $hooks = []; if ( isset( $data['globals']['wgHooks']['LoadExtensionSchemaUpdates'] ) ) { $hooks = $data['globals']['wgHooks']['LoadExtensionSchemaUpdates']; }