Merge "RCFilters: Show "from" link when live update is not available"
[lhc/web/wiklou.git] / maintenance / populateRecentChangesSource.php
index 452d213..5d5da89 100644 (file)
@@ -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 );