From b89d3da63b0331d0c996fcc06a8fa6024ab7d385 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 31 Dec 2006 23:59:23 +0000 Subject: [PATCH] * (bug 8447) Fix SQL typo breaking non-default $wgHitcounterUpdateFreq --- RELEASE-NOTES | 1 + includes/Article.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 501708eb58..a2d86f72ef 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -441,6 +441,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Resolve namespaces on interwiki Title objects using canonical namespace names if possible (should not happen, though, outside interwiki transclusion... and maybe not even then, but it does) +* (bug 8447) Fix SQL typo breaking non-default $wgHitcounterUpdateFreq == Languages updated == diff --git a/includes/Article.php b/includes/Article.php index e17aad78b2..dd9178ecae 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2501,7 +2501,7 @@ class Article { if ($wgDBtype == 'mysql') $dbw->query("LOCK TABLES $hitcounterTable WRITE"); $tabletype = $wgDBtype == 'mysql' ? "ENGINE=HEAP " : ''; - $dbw->query("CREATE TEMPORARY TABLE $acchitsTable $tabletype AS". + $dbw->query("CREATE TEMPORARY TABLE $acchitsTable $tabletype AS ". "SELECT hc_id,COUNT(*) AS hc_n FROM $hitcounterTable ". 'GROUP BY hc_id'); $dbw->query("DELETE FROM $hitcounterTable"); -- 2.20.1