From ce62f5edc412134d7347be16b551c2821db306f6 Mon Sep 17 00:00:00 2001 From: Geoffrey Mon Date: Wed, 29 Jul 2015 12:32:21 +0000 Subject: [PATCH] Add pageid to API parse output Bug: T27134 Change-Id: I4ef765e18020f93d7861e62d20649c89fca0f828 --- includes/api/ApiParse.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 577b5252ae..1b8f6d94aa 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -260,6 +260,7 @@ class ApiParse extends ApiBase { $result_array = array(); $result_array['title'] = $titleObj->getPrefixedText(); + $result_array['pageid'] = $pageid ? $pageid : $pageObj->getId(); if ( !is_null( $oldid ) ) { $result_array['revid'] = intval( $oldid ); -- 2.20.1