X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateRecentChangesSource.php;h=5d5da89a8c328741bb49fff1f67f4864827aafd6;hb=3bd5235bf69dea8cb304aaa68b60180829359321;hp=452d2135c6ed0d7aa3162861f707b5b7d3b38c99;hpb=1f2706b49939bfc85ec5abc8ccc24aacd938eed0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateRecentChangesSource.php b/maintenance/populateRecentChangesSource.php index 452d2135c6..5d5da89a8c 100644 --- a/maintenance/populateRecentChangesSource.php +++ b/maintenance/populateRecentChangesSource.php @@ -23,6 +23,8 @@ require_once __DIR__ . '/Maintenance.php'; +use Wikimedia\Rdbms\IDatabase; + /** * Maintenance script to populate the rc_source field. * @@ -61,11 +63,11 @@ class PopulateRecentChangesSource extends LoggedUpdateMaintenance { $dbw->update( 'recentchanges', - array( $updatedValues ), - array( + [ $updatedValues ], + [ "rc_source = ''", "rc_id BETWEEN $blockStart AND $blockEnd" - ), + ], __METHOD__ ); @@ -83,7 +85,7 @@ class PopulateRecentChangesSource extends LoggedUpdateMaintenance { return __CLASS__; } - protected function buildUpdateCondition( DatabaseBase $dbw ) { + protected function buildUpdateCondition( IDatabase $dbw ) { $rcNew = $dbw->addQuotes( RC_NEW ); $rcSrcNew = $dbw->addQuotes( RecentChange::SRC_NEW ); $rcEdit = $dbw->addQuotes( RC_EDIT );