X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FpopulateContentTables.php;h=3325b054566d263143c794cf0a4aa0f2d21997a6;hp=c84f3de54ecb80aef11ef1e50db316bbbe1db83e;hb=54c93f1d384cd5accd2db2ebbb911e4d627c2980;hpb=6cfb2e3d7a2b96d5041312fcec88248bb46573d7 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.'