* (bug 29684) Set forgotten parameter types in ApiQueryIWLinks
authorSam Reed <reedy@users.mediawiki.org>
Tue, 26 Jul 2011 15:19:05 +0000 (15:19 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 26 Jul 2011 15:19:05 +0000 (15:19 +0000)
RELEASE-NOTES-1.19
includes/api/ApiQueryIWLinks.php

index a153d7c..8241ecb 100644 (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 ===
 
index 9addf36..547c40b 100644 (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',