From: Brion Vibber Date: Sun, 31 Dec 2006 23:59:23 +0000 (+0000) Subject: * (bug 8447) Fix SQL typo breaking non-default $wgHitcounterUpdateFreq X-Git-Tag: 1.31.0-rc.0~54710 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=b89d3da63b0331d0c996fcc06a8fa6024ab7d385;p=lhc%2Fweb%2Fwiklou.git * (bug 8447) Fix SQL typo breaking non-default $wgHitcounterUpdateFreq --- 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");