From 0ffd093ea955472ecb7304ab20c57696a64b6651 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 8 Jan 2008 16:42:18 +0000 Subject: [PATCH] Returning protections more consistently --- includes/api/ApiQueryInfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } } } -- 2.20.1