Last modified: 2007-07-25 06:52:31 UTC
Using imageinfo with multiple titles, the imageinfo of each page contains the page's imageinfo, *as well as all previous imageinfo* http://commons.wikimedia.org/w/api.php?format=xml&action=query&prop=imageinfo&iiprop=timestamp|user|comment|url|size&titles=Image%3APalace%20of%20Porphyrogenitus%202007%20010.jpg|Image%3ASciamana.jpg|Image%3APalace%20of%20Porphyrogenitus%202007%20009.jpg|Image%3AArtur2.jpg|Image%3AMahoniaAquifolium003.JPG|Image%3ANinoslav%20Konstantinovic.jpeg|Image%3AMy%C3%B6hempien%20aikojen%20pyhien%20Jeesuksen%20Kristuksen%20kirkko%2C%20Turku.jpg|Image%3ANetherlands%20-%20Kleine%20Meer%20en%20Groote%20Meer%20nabij%20Zuiderwoude%20in%20Waterland.jpg|Image%3AKhakhuli3.jpg|Image%3APavillion%20%C3%B6u%20Llyod%20expo%201873.png|Image%3ABerlin%20Markthalle%20IV%20Grundriss%20Erdgeschoss%20Postcheckamt%20im%20Hof.jpg|Image%3AFraisse-sur-Agout%20Prat%20Alaric%202.JPG|Image%3ABallina%2C%20Nlle%20Galles%20du%20Sud.png|Image%3AMorris%20Tulip%20and%20Willow%20design%201873.jpg|Image%3AIndian%20Blue%20Peacock%2042.jpg|Image%3ABrasao%20saudades.jpg|Image%3AKhakhuli2.jpg|Image%3AKryptaLublin.jpg|Image%3AMilos%20Simovic.jpeg|Image%3ACane.jpg|Image%3ARipley%20map%20of%20cephalic%20index%20in%20Europe.png|Image%3AKhakhuli1.jpg|Image%3AKugeldistel.JPG|Image%3ASkrjabin%20op%2040%202.ogg|Image%3AGabas15.jpg|Image%3ANetherlands%20-%20Holysloot%20aan%20het%20Holysloter%20Die.jpg|Image%3AFraisse-sur-Agout%20Prat%20Alaric%201.JPG|Image%3AVincentVanGoghDieArlesierin1890.jpg|Image%3A%D7%A4%D7%95%D7%9C%D7%99%D7%9F%20014.jpg|Image%3AT%20de%20alvear.jpg|Image%3AArtur1.jpg|Image%3AGlucuronic%20acid%20stereochem.svg|Image%3ABandeira%20saudades.jpg|Image%3AMorris%20and%20Co%20Columbine%201876.jpg|Image%3ASretko%20Kalinic.jpeg|Image%3ADahlia001.JPG|Image%3ATao-Klarjeti.jpg|Image%3AAlberto.jpg|Image%3ATramlijn4brussel.png|Image%3AIrminsul%202.PNG|Image%3ACancha%20de%20australia%20open6.jpg|Image%3AKinderwagen%2C%20historisch.jpg|Image%3AIrminsul%201.PNG|Image%3ADuria%20Antiquior.jpg|Image%3AAltar%20mayor224.jpg|Image%3ABbkingshaylieecker.jpg Also, non-existing pages get ALL information (independent of its position). http://commons.wikimedia.org/w/api.php?format=xml&action=query&prop=imageinfo&iiprop=timestamp|user|comment|url|size&titles=Image%3AFoo|Image%3APalace%20of%20Porphyrogenitus%202007%20010.jpg|Image%3ASciamana.jpg
*** Bug 10670 has been marked as a duplicate of this bug. ***
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