* (bug 8447) Fix SQL typo breaking non-default $wgHitcounterUpdateFreq
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 31 Dec 2006 23:59:23 +0000 (23:59 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 31 Dec 2006 23:59:23 +0000 (23:59 +0000)
RELEASE-NOTES
includes/Article.php

index 501708e..a2d86f7 100644 (file)
@@ -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 ==
index e17aad7..dd9178e 100644 (file)
@@ -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");