* (bug 13544) Added oldid parameter to action=parse to allow for parsing of old revisions
* (bug 13718) Return the proper continue parameter for cmsort=timestamp
* action=login now returns the correct waiting time in the details property
+* (bug 13768) inprop=protection now honors case-insensitivity for protected titles
=== Languages updated in 1.13 ===
$res = $this->select(__METHOD__);
$prottitles = array();
while($row = $db->fetchObject($res)) {
- $prottitles[$row->pt_namespace][$row->pt_title] = array(
+ // Argh, pt_title is case-insensitive
+ $prottitles[$row->pt_namespace][strtolower($row->pt_title)] = array(
'type' => 'create',
'level' => $row->pt_create_perm,
'expiry' => Block::decodeExpiry($row->pt_expiry, TS_ISO_8601)
{
// Apparently the XML formatting code doesn't like array(null)
// This is painful to fix, so we'll just work around it
- if(isset($prottitles[$title->getNamespace()][$title->getDBkey()]))
- $res['query']['pages'][$pageid]['protection'][] = $prottitles[$title->getNamespace()][$title->getDBkey()];
+ if(isset($prottitles[$title->getNamespace()][strtolower($title->getDBkey())]))
+ $res['query']['pages'][$pageid]['protection'][] = $prottitles[$title->getNamespace()][strtolower($title->getDBkey())];
else
$res['query']['pages'][$pageid]['protection'] = array();
$result->setIndexedTagName($res['query']['pages'][$pageid]['protection'], 'pr');