jenkins-bot has submitted this change and it was merged.

Change subject: API: Pass pageId as intval to avoid error in XML output
......................................................................


API: Pass pageId as intval to avoid error in XML output

T57743 reported something similar, leading me to find this problem.

Change-Id: I012d68301cb928ff746fd9fc0d50d03041021750
---
M ApiQueryVideoInfo.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Gilles: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ApiQueryVideoInfo.php b/ApiQueryVideoInfo.php
index cf67321..c9ddc8f 100644
--- a/ApiQueryVideoInfo.php
+++ b/ApiQueryVideoInfo.php
@@ -215,7 +215,7 @@
                        foreach ( $pages as $pageid => $arr ) {
                                if ( !isset( $arr['imagerepository'] ) ) {
                                        $result->addValue(
-                                               array( 'query', 'pages', 
$pageid ),
+                                               array( 'query', 'pages', 
intval( $pageid ) ),
                                                'imagerepository', ''
                                        );
                                }

-- 
To view, visit https://gerrit.wikimedia.org/r/198522
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I012d68301cb928ff746fd9fc0d50d03041021750
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TimedMediaHandler
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Gilles <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to