(bug 43207) Fix regression in API generator=duplicatefiles
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 17 Dec 2012 19:11:47 +0000 (14:11 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 17 Dec 2012 19:11:47 +0000 (14:11 -0500)
commit725a29ebe9c039c41e017c69eef9e1cee178db09
tree5fc9b271acfea9a8887b7438d0533a99e207b209
parent7e0d8d597de64602b520c83ed8c9bdfaeea75c2e
(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
includes/api/ApiQueryDuplicateFiles.php