show old protection in prop=info, if no new protection exists
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 17 Jun 2012 16:46:21 +0000 (18:46 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 8 Jul 2012 14:52:02 +0000 (14:52 +0000)
commit8d2b1a1b58c634459db7813553be034b9be51d65
tree25da5c6c9973efedd371302434a164d75f4895fd
parent56cba166bd43477ff787d3a055abeb3d993daebd
show old protection in prop=info, if no new protection exists

prop=info shows only old protection from page.page_restrictions, if a
new protection in table page_restrictions was found, because only in the
foreach was the old protection checked, but that foreach operated
on pages, which was found in table page_restrictions. Doing an extra
foreach over the array of old protection fix this.
This change also removes the join from the query to table
page_restrictions, because the code already know the needed ns/dbkey.

Change-Id: I52111f30e4fa9550c82d18db33efda5edec59c66
includes/api/ApiQueryInfo.php