From: Sam Reed Date: Tue, 26 Jul 2011 15:19:05 +0000 (+0000) Subject: * (bug 29684) Set forgotten parameter types in ApiQueryIWLinks X-Git-Tag: 1.31.0-rc.0~28616 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=381dcc7200f1083bfcd1f288a98059d695e0a493;p=lhc%2Fweb%2Fwiklou.git * (bug 29684) Set forgotten parameter types in ApiQueryIWLinks --- 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',