From 153abd52fd02f2a5919631fe5d02d2eb1a66f469 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 6 Feb 2014 20:19:09 +0100 Subject: 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 --- includes/AjaxResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/AjaxResponse.php') 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; } -- cgit v1.2.3