diff options
Diffstat (limited to 'includes/api/ApiOpenSearch.php')
-rw-r--r-- | includes/api/ApiOpenSearch.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 15aa9839af48..7a7d8f50db96 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -190,7 +190,7 @@ class ApiOpenSearch extends ApiBase { } } else { foreach ( $titles as $title ) { - $resultId = $title->getArticleId(); + $resultId = $title->getArticleID(); if ( $resultId === 0 ) { $resultId = $nextSpecialPageId; $nextSpecialPageId -= 1; @@ -201,7 +201,7 @@ class ApiOpenSearch extends ApiBase { 'extract' => false, 'extract trimmed' => false, 'image' => false, - 'url' => wfExpandUrl( $title->getFullUrl(), PROTO_CURRENT ), + 'url' => wfExpandUrl( $title->getFullURL(), PROTO_CURRENT ), ]; } } |