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
Return the page_id in list=iwbacklinks as an int rather than string
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryIWBacklinks.php
diff --git
a/includes/api/ApiQueryIWBacklinks.php
b/includes/api/ApiQueryIWBacklinks.php
index
90aed6e
..
83801c7
100644
(file)
--- a/
includes/api/ApiQueryIWBacklinks.php
+++ b/
includes/api/ApiQueryIWBacklinks.php
@@
-131,7
+131,7
@@
class ApiQueryIWBacklinks extends ApiQueryGeneratorBase {
if ( !is_null( $resultPageSet ) ) {
$pages[] = Title::newFromRow( $row );
} else {
if ( !is_null( $resultPageSet ) ) {
$pages[] = Title::newFromRow( $row );
} else {
- $entry = [ 'pageid' => $row->page_id ];
+ $entry = [ 'pageid' =>
(int)
$row->page_id ];
$title = Title::makeTitle( $row->page_namespace, $row->page_title );
ApiQueryBase::addTitleInfo( $entry, $title );
$title = Title::makeTitle( $row->page_namespace, $row->page_title );
ApiQueryBase::addTitleInfo( $entry, $title );