From 4276502fdb390e187caa8e2f4f8d8bbc3e805441 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 3 Sep 2010 21:39:50 +0000 Subject: [PATCH] Follow-up r70970. There's no StubUser any more, so no point in showing the wfDebug on each request. --- includes/api/ApiMain.php | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.20.1