includes/stats.php
changeset 108 1c7f59df9474
parent 73 0a74676a2f2f
child 142 ca9118d9c0f2
--- a/includes/stats.php	Tue Aug 28 19:00:20 2007 -0400
+++ b/includes/stats.php	Wed Aug 29 18:23:37 2007 -0400
@@ -60,7 +60,7 @@
   }
   
   $data = array();
-  $q = $db->sql_query('SELECT COUNT(hit_id) AS num_hits, page_id, namespace FROM hits GROUP BY page_id, namespace ORDER BY num_hits DESC LIMIT ' . $num . ';');
+  $q = $db->sql_query('SELECT COUNT(hit_id) AS num_hits, page_id, namespace FROM '.table_prefix.'hits GROUP BY page_id, namespace ORDER BY num_hits DESC LIMIT ' . $num . ';');
   
   while ( $row = $db->fetchrow() )
   {