Revision: 46096
Author:   catrope
Date:     2009-01-23 20:08:00 +0000 (Fri, 23 Jan 2009)

Log Message:
-----------
API: ApiBase::dieUsage() is not a static function, fix static calls

Modified Paths:
--------------
    trunk/phase3/includes/api/ApiMain.php

Modified: trunk/phase3/includes/api/ApiMain.php
===================================================================
--- trunk/phase3/includes/api/ApiMain.php       2009-01-23 19:40:07 UTC (rev 
46095)
+++ trunk/phase3/includes/api/ApiMain.php       2009-01-23 20:08:00 UTC (rev 
46096)
@@ -398,9 +398,9 @@
                                header( 'X-Database-Lag: ' . intval( $lag ) );
                                // XXX: should we return a 503 HTTP error code 
like wfMaxlagError() does?
                                if( $wgShowHostnames ) {
-                                       ApiBase :: dieUsage( "Waiting for 
$host: $lag seconds lagged", 'maxlag' );
+                                       $this->dieUsage( "Waiting for $host: 
$lag seconds lagged", 'maxlag' );
                                } else {
-                                       ApiBase :: dieUsage( "Waiting for a 
database server: $lag seconds lagged", 'maxlag' );
+                                       $this->dieUsage( "Waiting for a 
database server: $lag seconds lagged", 'maxlag' );
                                }
                                return;
                        }



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to