Using imageinfo with multiple titles, the imageinfo of each page contains the page's imageinfo, *as well as all previous imageinfo*
Also, non-existing pages get ALL information (independent of its position).
Using imageinfo with multiple titles, the imageinfo of each page contains the page's imageinfo, *as well as all previous imageinfo*
Also, non-existing pages get ALL information (independent of its position).
Relevant code from includes\api\ApiQueryImageInfo.php
Everything seems correct. I think there is a bug in the object returned from wfFindFile():
$title = Title :: makeTitle(NS_IMAGE, $dbKey);
$img = wfFindFile($title);
...
while($line = $img->nextHistoryLine()) { // assignment
// get data from the $line
}
$img->resetHistory(); // cleanup
My bad, an undeclared php variable kept previous function call values... Ugh!
Fixed in r24372