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:
b80bcaa
)
Add pageid to API parse output
author
Geoffrey Mon
<geofbot@gmail.com>
Wed, 29 Jul 2015 12:32:21 +0000
(12:32 +0000)
committer
Geoffrey Mon
<geofbot@gmail.com>
Thu, 30 Jul 2015 18:19:14 +0000
(18:19 +0000)
Bug: T27134
Change-Id: I4ef765e18020f93d7861e62d20649c89fca0f828
includes/api/ApiParse.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiParse.php
b/includes/api/ApiParse.php
index
577b525
..
1b8f6d9
100644
(file)
--- 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 );