From: Roan Kattouw Date: Tue, 8 Jan 2008 16:42:18 +0000 (+0000) Subject: Returning protections more consistently X-Git-Tag: 1.31.0-rc.0~50103 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=0ffd093ea955472ecb7304ab20c57696a64b6651;p=lhc%2Fweb%2Fwiklou.git Returning protections more consistently --- diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 10ac8139f0..1450ad1718 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -200,7 +200,8 @@ class ApiQueryInfo extends ApiQueryBase { if($tok_protect) $res['query']['pages'][$pageid]['protecttoken'] = $wgUser->editToken(); if($fld_protection) - $res['query']['pages'][$pageid]['protection'] = $prottitles[$title->getNamespace()][$title->getDbKey()]; + $res['query']['pages'][$pageid]['protection'][] = $prottitles[$title->getNamespace()][$title->getDbKey()]; + $result->setIndexedTagName($res['query']['pages'][$pageid]['protection'], 'pr'); } } }