dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add dynomite comments to WANObjectCache
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialListDuplicatedFiles.php
diff --git
a/includes/specials/SpecialListDuplicatedFiles.php
b/includes/specials/SpecialListDuplicatedFiles.php
index
49fa417
..
52c710d
100644
(file)
--- a/
includes/specials/SpecialListDuplicatedFiles.php
+++ b/
includes/specials/SpecialListDuplicatedFiles.php
@@
-24,6
+24,8
@@
* @author Brian Wolff
*/
* @author Brian Wolff
*/
+use Wikimedia\Rdbms\ResultWrapper;
+
/**
* Special:ListDuplicatedFiles Lists all files where the current version is
* a duplicate of the current version of some other file.
/**
* Special:ListDuplicatedFiles Lists all files where the current version is
* a duplicate of the current version of some other file.
@@
-75,16
+77,7
@@
class ListDuplicatedFilesPage extends QueryPage {
* @param ResultWrapper $res
*/
function preprocessResults( $db, $res ) {
* @param ResultWrapper $res
*/
function preprocessResults( $db, $res ) {
- if ( $res->numRows() > 0 ) {
- $linkBatch = new LinkBatch();
-
- foreach ( $res as $row ) {
- $linkBatch->add( $row->namespace, $row->title );
- }
-
- $res->seek( 0 );
- $linkBatch->execute();
- }
+ $this->executeLBFromResultWrapper( $res );
}
/**
}
/**