Correct the destination of checkLastModified debug messages
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Thu, 6 Feb 2014 19:19:09 +0000 (20:19 +0100)
committerOri.livneh <ori@wikimedia.org>
Fri, 14 Mar 2014 22:33:21 +0000 (22:33 +0000)
- 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
includes/OutputPage.php

index ac8a9f0..334cee3 100644 (file)
@@ -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;
                }
 
index efcd838..9cba0cc 100644 (file)
@@ -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;
                }