(bug 43207) Fix regression in API generator=duplicatefiles
Prior to change I745cae7a, generator=duplicatefiles would return all the files that were duplicates of the passed files. Since then, it will return only one of the input files if any duplicates are found, possibly one that doesn't even have duplicates. The problem is the use of a wrong variable. Change-Id: I8e8493718ab1f7f5cb6ae718790738a7cf3c72c7
This commit is contained in:
parent
7e0d8d597d
commit
725a29ebe9
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase {
|
|||
break;
|
||||
}
|
||||
if ( !is_null( $resultPageSet ) ) {
|
||||
$titles[] = $file->getTitle();
|
||||
$titles[] = $dupFile->getTitle();
|
||||
} else {
|
||||
$r = array(
|
||||
'name' => $dupName,
|
||||
|
|
|
|||
Loading…
Reference in a new issue