From 7fdbce585bb513be0eb271f38008668b510aff9b Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 9 May 2007 20:55:20 +0000 Subject: [PATCH] * Fix #6823: HTML dumping should not increment the page view counters. * Small documentation for $wgDisableCounters. --- RELEASE-NOTES | 2 +- includes/DefaultSettings.php | 4 ++++ maintenance/dumpHTML.inc | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b6a22b5d87..f07f624120 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -51,7 +51,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN == Maintenance script changes since 1.10 == * Add support for wgMaxTocLevel option in parserTests - +* (bug 6823) dumpHTML: explicitly disable article view counter == Languages updated since 1.10 == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 677717ea80..dce78a802a 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1337,7 +1337,11 @@ $wgDebugFunctionEntry = 0; /** Lots of debugging output from SquidUpdate.php */ $wgDebugSquid = false; +/** Whereas to count the number of time an article is viewed. + * Does not work if pages are cached (for example with squid). + */ $wgDisableCounters = false; + $wgDisableTextSearch = false; $wgDisableSearchContext = false; /** diff --git a/maintenance/dumpHTML.inc b/maintenance/dumpHTML.inc index ca2a7df6d8..18f5a9d792 100644 --- a/maintenance/dumpHTML.inc +++ b/maintenance/dumpHTML.inc @@ -9,6 +9,10 @@ require_once( 'includes/ImagePage.php' ); require_once( 'includes/CategoryPage.php' ); require_once( 'includes/RawPage.php' ); +# Explicitly disable article view counter (bug 6823) +global $wgDisableCounters; +$wgDisableCounters = true; + class DumpHTML { # Destination directory var $dest; -- 2.20.1