dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9b1eb0
)
Returning protections more consistently
author
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 8 Jan 2008 16:42:18 +0000
(16:42 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 8 Jan 2008 16:42:18 +0000
(16:42 +0000)
includes/api/ApiQueryInfo.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryInfo.php
b/includes/api/ApiQueryInfo.php
index
10ac813
..
1450ad1
100644
(file)
--- 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');
}
}
}