diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /maintenance/purgeChangedPages.php | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'maintenance/purgeChangedPages.php')
-rw-r--r-- | maintenance/purgeChangedPages.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/maintenance/purgeChangedPages.php b/maintenance/purgeChangedPages.php index 071ac09c..67022094 100644 --- a/maintenance/purgeChangedPages.php +++ b/maintenance/purgeChangedPages.php @@ -160,10 +160,11 @@ class PurgeChangedPages extends Maintenance { * If this returns an empty array for a non-empty query result, then all the rows * had the same column value and the query should be repeated with a higher LIMIT. * - * @TODO: move this elsewhere + * @todo move this elsewhere * * @param ResultWrapper $res Query result sorted by $column (ascending) * @param string $column + * @param int $limit * @return array (array of rows, string column value) */ protected function pageableSortedRows( ResultWrapper $res, $column, $limit ) { @@ -183,6 +184,7 @@ class PurgeChangedPages extends Maintenance { } } $lastValueLeft = count( $rows ) ? $rows[count( $rows ) - 1]->$column : null; + return array( $rows, $lastValueLeft ); } } |