X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateContentTables.php;h=3325b054566d263143c794cf0a4aa0f2d21997a6;hb=31c334794c8164e44353e22aed71bb27caca80e3;hp=c84f3de54ecb80aef11ef1e50db316bbbe1db83e;hpb=31634739695493e929eeb6c8c1b7fd9c3f5bf826;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.'