X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryInfo.php;h=1450ad171880665f2ee95b5856b03c59c39e6535;hb=0ffd093ea955472ecb7304ab20c57696a64b6651;hp=10ac8139f08da5ddd2d4326a0240d6f1f5837129;hpb=e9b1eb0875d8b7610c40d11add42c88422d600d8;p=lhc%2Fweb%2Fwiklou.git 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'); } } }