r69234 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69233‎ | r69234 | r69235 >
Date:10:47, 10 July 2010
Author:btongminh
Status:ok
Tags:
Comment:
Follow-up r69231: servedby is a boolean so will always be non-null.
Modified paths:
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMain.php
@@ -402,7 +402,7 @@
403403 $this->getResult()->addValue( null, 'requestid', $requestid );
404404 }
405405 $servedby = $this->getParameter( 'servedby' );
406 - if( !is_null( $servedby ) ) {
 406+ if( $servedby ) {
407407 $this->getResult()->addValue( null, 'servedby', wfHostName() );
408408 }
409409

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69231(bug 24303) Expose hostname in API results. Show via servedby parameter, adde...demon10:37, 10 July 2010

Status & tagging log