From 381dcc7200f1083bfcd1f288a98059d695e0a493 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 26 Jul 2011 15:19:05 +0000 Subject: [PATCH] * (bug 29684) Set forgotten parameter types in ApiQueryIWLinks --- RELEASE-NOTES-1.19 | 1 + includes/api/ApiQueryIWLinks.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index a153d7c132..8241ecbc65 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -29,6 +29,7 @@ production. === API changes in 1.19 === * (bug 19838) siprop=interwikimap can now use the interwiki cache. * (bug 29748) Add API search prefix support +* (bug 29684) Set forgotten parameter types in ApiQueryIWLinks === Languages updated in 1.19 === diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index 9addf36757..547c40b56b 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -109,7 +109,7 @@ class ApiQueryIWLinks extends ApiQueryBase { } $entry = array( 'prefix' => $row->iwl_prefix ); - if ( !is_null( $params['url'] ) ) { + if ( $params['url'] ) { $title = Title::newFromText( "{$row->iwl_prefix}:{$row->iwl_title}" ); if ( $title ) { $entry['url'] = wfExpandUrl( $title->getFullURL() ); @@ -131,7 +131,7 @@ class ApiQueryIWLinks extends ApiQueryBase { public function getAllowedParams() { return array( - 'url' => null, + 'url' => false, 'limit' => array( ApiBase::PARAM_DFLT => 10, ApiBase::PARAM_TYPE => 'limit', -- 2.20.1