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=langbacklinks as an int
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryLangBacklinks.php
diff --git
a/includes/api/ApiQueryLangBacklinks.php
b/includes/api/ApiQueryLangBacklinks.php
index
9b99312
..
2e19783
100644
(file)
--- a/
includes/api/ApiQueryLangBacklinks.php
+++ b/
includes/api/ApiQueryLangBacklinks.php
@@
-130,7
+130,7
@@
class ApiQueryLangBacklinks 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 );