From ab1104723efa2792c2d69ca2d943b0846904a380 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 3 Dec 2010 14:44:07 +0000 Subject: [PATCH] Followup r77072: declare llurl as a boolean parameter. --- includes/api/ApiQueryLangLinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 58029ff24e..60e33709fe 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -87,7 +87,7 @@ class ApiQueryLangLinks extends ApiQueryBase { break; } $entry = array( 'lang' => $row->ll_lang ); - if ( !is_null( $params['url'] ) ) { + if ( $params['url'] ) { $title = Title::newFromText( "{$row->ll_lang}:{$row->ll_title}" ); if ( $title ) { $entry['url'] = $title->getFullURL(); @@ -116,7 +116,7 @@ class ApiQueryLangLinks extends ApiQueryBase { ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2 ), 'continue' => null, - 'url' => null, + 'url' => false, ); } -- 2.20.1