Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -398,9 +398,9 @@ |
399 | 399 | header( 'X-Database-Lag: ' . intval( $lag ) ); |
400 | 400 | // XXX: should we return a 503 HTTP error code like wfMaxlagError() does? |
401 | 401 | if( $wgShowHostnames ) { |
402 | | - ApiBase :: dieUsage( "Waiting for $host: $lag seconds lagged", 'maxlag' ); |
| 402 | + $this->dieUsage( "Waiting for $host: $lag seconds lagged", 'maxlag' ); |
403 | 403 | } 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' ); |
405 | 405 | } |
406 | 406 | return; |
407 | 407 | } |