http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72316

Revision: 72316
Author:   platonides
Date:     2010-09-03 21:39:50 +0000 (Fri, 03 Sep 2010)

Log Message:
-----------
Follow-up r70970. There's no StubUser any more, so no point in showing the 
wfDebug on each request.

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

Modified: trunk/phase3/includes/api/ApiMain.php
===================================================================
--- trunk/phase3/includes/api/ApiMain.php       2010-09-03 21:33:59 UTC (rev 
72315)
+++ trunk/phase3/includes/api/ApiMain.php       2010-09-03 21:39:50 UTC (rev 
72316)
@@ -397,12 +397,6 @@
                                header( 'Cache-Control: private' );
                                return;
                        } // else no XVO and anonymous, send public headers 
below
-               } else /* if public */ {
-                       // Give a debugging message if the user object is 
unstubbed on a public request
-                       global $wgUser;
-                       if ( !( $wgUser instanceof StubUser ) ) {
-                               wfDebug( __METHOD__ . " \$wgUser is unstubbed 
on a public request!\n" );
-                       }
                }
 
                // If nobody called setCacheMaxAge(), use the (s)maxage 
parameters



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

Reply via email to