r77660 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77659‎ | r77660 | r77661 >
Date:14:44, 3 December 2010
Author:catrope
Status:ok
Tags:
Comment:
Followup r77072: declare llurl as a boolean parameter.
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryLangLinks.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryLangLinks.php
@@ -87,7 +87,7 @@
8888 break;
8989 }
9090 $entry = array( 'lang' => $row->ll_lang );
91 - if ( !is_null( $params['url'] ) ) {
 91+ if ( $params['url'] ) {
9292 $title = Title::newFromText( "{$row->ll_lang}:{$row->ll_title}" );
9393 if ( $title ) {
9494 $entry['url'] = $title->getFullURL();
@@ -116,7 +116,7 @@
117117 ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
118118 ),
119119 'continue' => null,
120 - 'url' => null,
 120+ 'url' => false,
121121 );
122122 }
123123

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77072* (bug 26006) prop=langlinks now allows obtaining full URLialex14:04, 21 November 2010

Status & tagging log