jenkins-bot has submitted this change and it was merged.
Change subject: Add pageid to API parse output
......................................................................
Add pageid to API parse output
Bug: T27134
Change-Id: I4ef765e18020f93d7861e62d20649c89fca0f828
---
M includes/api/ApiParse.php
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Anomie: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php
index 577b525..1b8f6d9 100644
--- a/includes/api/ApiParse.php
+++ b/includes/api/ApiParse.php
@@ -260,6 +260,7 @@
$result_array = array();
$result_array['title'] = $titleObj->getPrefixedText();
+ $result_array['pageid'] = $pageid ? $pageid : $pageObj->getId();
if ( !is_null( $oldid ) ) {
$result_array['revid'] = intval( $oldid );
--
To view, visit https://gerrit.wikimedia.org/r/227764
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4ef765e18020f93d7861e62d20649c89fca0f828
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Sn1per <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits