Follow-up r70970. There's no StubUser any more, so no point in showing the wfDebug...
authorPlatonides <platonides@users.mediawiki.org>
Fri, 3 Sep 2010 21:39:50 +0000 (21:39 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 3 Sep 2010 21:39:50 +0000 (21:39 +0000)
includes/api/ApiMain.php

index 6804659..d837f45 100644 (file)
@@ -397,12 +397,6 @@ class ApiMain extends ApiBase {
                                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