X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateContentTables.php;h=3325b054566d263143c794cf0a4aa0f2d21997a6;hb=9e8439e79d67788916d488f645108f79016d9aca;hp=c84f3de54ecb80aef11ef1e50db316bbbe1db83e;hpb=9d9b2e385414c4cde629e8745088dfa48a61f12f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateContentTables.php b/maintenance/populateContentTables.php index c84f3de54e..3325b05456 100644 --- a/maintenance/populateContentTables.php +++ b/maintenance/populateContentTables.php @@ -77,11 +77,12 @@ class PopulateContentTables extends Maintenance { } public function execute() { - global $wgMultiContentRevisionSchemaMigrationStage; + $multiContentRevisionSchemaMigrationStage = + $this->getConfig()->get( 'MultiContentRevisionSchemaMigrationStage' ); $t0 = microtime( true ); - if ( ( $wgMultiContentRevisionSchemaMigrationStage & SCHEMA_COMPAT_WRITE_NEW ) === 0 ) { + if ( ( $multiContentRevisionSchemaMigrationStage & SCHEMA_COMPAT_WRITE_NEW ) === 0 ) { $this->writeln( '...cannot update while \$wgMultiContentRevisionSchemaMigrationStage ' . 'does not have the SCHEMA_COMPAT_WRITE_NEW bit set.'