From: Antoine Musso Date: Wed, 9 May 2007 20:55:20 +0000 (+0000) Subject: * Fix #6823: HTML dumping should not increment the page view counters. X-Git-Tag: 1.31.0-rc.0~52988 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=7fdbce585bb513be0eb271f38008668b510aff9b;p=lhc%2Fweb%2Fwiklou.git * Fix #6823: HTML dumping should not increment the page view counters. * Small documentation for $wgDisableCounters. --- 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;