aboutsummaryrefslogtreecommitdiffstats
path: root/includes/AjaxResponse.php
diff options
context:
space:
mode:
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>2014-02-06 20:19:09 +0100
committerOri.livneh <ori@wikimedia.org>2014-03-14 22:33:21 +0000
commit153abd52fd02f2a5919631fe5d02d2eb1a66f469 (patch)
treeb082176ac8d9c08958ae585a0b36afed3384c9fb /includes/AjaxResponse.php
parent96b04cef361c26bbc6b76be6afbf298e4d22fed3 (diff)
downloadmediawikicore-153abd52fd02f2a5919631fe5d02d2eb1a66f469.tar.gz
mediawikicore-153abd52fd02f2a5919631fe5d02d2eb1a66f469.zip
Correct the destination of checkLastModified debug messages
- OutputPage: if $wgCachePages is set to false, then it can be shown back to the user - AjaxResponder: don't send back to the user (for consistency with the other calls to wfDebug(), and this can't be displayed to the user) Change-Id: I17794016cfaef65ee3df3b82ceb8cb3a32ac7c67
Diffstat (limited to 'includes/AjaxResponse.php')
-rw-r--r--includes/AjaxResponse.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php
index ac8a9f097d2e..334cee37728c 100644
--- a/includes/AjaxResponse.php
+++ b/includes/AjaxResponse.php
@@ -215,7 +215,7 @@ class AjaxResponse {
$fname = 'AjaxResponse::checkLastModified';
if ( !$timestamp || $timestamp == '19700101000000' ) {
- wfDebug( "$fname: CACHE DISABLED, NO TIMESTAMP\n" );
+ wfDebug( "$fname: CACHE DISABLED, NO TIMESTAMP\n", 'log' );
return false;
}