From 153abd52fd02f2a5919631fe5d02d2eb1a66f469 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 6 Feb 2014 20:19:09 +0100 Subject: [PATCH] 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 +- includes/OutputPage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index ac8a9f097d..334cee3772 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; } diff --git a/includes/OutputPage.php b/includes/OutputPage.php index efcd838df3..9cba0cce87 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -685,7 +685,7 @@ class OutputPage extends ContextSource { return false; } if ( !$wgCachePages ) { - wfDebug( __METHOD__ . ": CACHE DISABLED\n", 'log' ); + wfDebug( __METHOD__ . ": CACHE DISABLED\n" ); return false; } -- 2.20.1