X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupTable.inc;h=b78e691e8f30cf390b155911156df657ecf4abba;hb=1a940616b174a65d26db1109ab07a2d3a0231c35;hp=a18b81e7d9e55b6e21a45f93054001114f8e7692;hpb=f9d7d3b8561dab3ddfd8798a77a5b72e03ac8c2b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupTable.inc b/maintenance/cleanupTable.inc index a18b81e7d9..b78e691e8f 100644 --- a/maintenance/cleanupTable.inc +++ b/maintenance/cleanupTable.inc @@ -106,7 +106,7 @@ class TableCleanup extends Maintenance { * @throws MWException */ public function runTable( $params ) { - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); if ( array_diff( array_keys( $params ), [ 'table', 'conds', 'index', 'callback' ] ) @@ -165,7 +165,7 @@ class TableCleanup extends Maintenance { } /** - * @param array $matches + * @param string[] $matches * @return string */ protected function hexChar( $matches ) {