* (bug 29684) Set forgotten parameter types in ApiQueryIWLinks

This commit is contained in:
Sam Reed 2011-07-26 15:19:05 +00:00
parent 4217b92e0e
commit 381dcc7200
2 changed files with 3 additions and 2 deletions

View file

@ -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 ===

View file

@ -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',