From: Platonides Date: Fri, 3 Sep 2010 21:39:50 +0000 (+0000) Subject: Follow-up r70970. There's no StubUser any more, so no point in showing the wfDebug... X-Git-Tag: 1.31.0-rc.0~35190 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=4276502fdb390e187caa8e2f4f8d8bbc3e805441;p=lhc%2Fweb%2Fwiklou.git Follow-up r70970. There's no StubUser any more, so no point in showing the wfDebug on each request. --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 6804659a2e..d837f454e0 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -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