dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
656f399
)
Follow-up r70970. There's no StubUser any more, so no point in showing the wfDebug...
author
Platonides
<platonides@users.mediawiki.org>
Fri, 3 Sep 2010 21:39:50 +0000
(21:39 +0000)
committer
Platonides
<platonides@users.mediawiki.org>
Fri, 3 Sep 2010 21:39:50 +0000
(21:39 +0000)
includes/api/ApiMain.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
6804659
..
d837f45
100644
(file)
--- 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