dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Better pageprops API example"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryPageProps.php
diff --git
a/includes/api/ApiQueryPageProps.php
b/includes/api/ApiQueryPageProps.php
index
8c89a60
..
87f90c5
100644
(file)
--- a/
includes/api/ApiQueryPageProps.php
+++ b/
includes/api/ApiQueryPageProps.php
@@
-110,6
+110,7
@@
class ApiQueryPageProps extends ApiQueryBase {
* @return bool True if it fits in the result
*/
private function addPageProps( $result, $page, $props ) {
+ ApiResult::setArrayType( $props, 'assoc' );
$fit = $result->addValue( array( 'query', 'pages', $page ), 'pageprops', $props );
if ( !$fit ) {