r46096 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46095‎ | r46096 | r46097 >
Date:20:08, 23 January 2009
Author:catrope
Status:ok
Tags:
Comment:
API: ApiBase::dieUsage() is not a static function, fix static calls
Modified paths:
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMain.php
@@ -398,9 +398,9 @@
399399 header( 'X-Database-Lag: ' . intval( $lag ) );
400400 // XXX: should we return a 503 HTTP error code like wfMaxlagError() does?
401401 if( $wgShowHostnames ) {
402 - ApiBase :: dieUsage( "Waiting for $host: $lag seconds lagged", 'maxlag' );
 402+ $this->dieUsage( "Waiting for $host: $lag seconds lagged", 'maxlag' );
403403 } else {
404 - ApiBase :: dieUsage( "Waiting for a database server: $lag seconds lagged", 'maxlag' );
 404+ $this->dieUsage( "Waiting for a database server: $lag seconds lagged", 'maxlag' );
405405 }
406406 return;
407407 }

Status & tagging log