Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -397,12 +397,6 @@ |
398 | 398 | header( 'Cache-Control: private' ); |
399 | 399 | return; |
400 | 400 | } // else no XVO and anonymous, send public headers below |
401 | | - } else /* if public */ { |
402 | | - // Give a debugging message if the user object is unstubbed on a public request |
403 | | - global $wgUser; |
404 | | - if ( !( $wgUser instanceof StubUser ) ) { |
405 | | - wfDebug( __METHOD__ . " \$wgUser is unstubbed on a public request!\n" ); |
406 | | - } |
407 | 401 | } |
408 | 402 | |
409 | 403 | // If nobody called setCacheMaxAge(), use the (s)maxage parameters |