Index: taxonews.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonews/taxonews.module,v
retrieving revision 1.10.6.8
diff -u -r1.10.6.8 taxonews.module
--- taxonews.module	8 Jun 2008 13:15:04 -0000	1.10.6.8
+++ taxonews.module	8 Jul 2008 09:28:53 -0000
@@ -196,7 +196,7 @@
     {
     $sq = 'SELECT COUNT(tn.nid) '
         . 'FROM {term_node} tn '
-        . 'INNER JOIN {node} n ON tn.vid = n.vid '
+        . '  INNER JOIN {node} n ON tn.nid = n.nid '
         . 'WHERE tn.tid = %d AND n.status = 1 ';
 
     if (!isset($items))
@@ -274,7 +274,7 @@
     $i = 0 ;
     $sq = 'SELECT count(tn.nid) AS cnt '
         . 'FROM {term_node} tn '
-        . 'INNER JOIN {node} n ON tn.nid = n.nid '
+        . '  INNER JOIN {node} n ON tn.nid = n.nid '
         . 'WHERE n.status = 1 AND tn.tid = %d ';
 
     foreach ($arTerms as $term)
@@ -331,7 +331,7 @@
     $ponderation = module_exists('statistics')
       ? variable_get(self::VAR_PONDERATED, 0)
       : 0;
-     
+
     /**
      * There's a small trick for case 0|default: n.created is not a views count, but can
      * be used exactly like one: more recent nodes will have a higher value in
@@ -464,7 +464,7 @@
 
     return $arTerms;
     }
-  } // end of class Taxonews 
+  } // end of class Taxonews
 
 /**
  * Until a more generic way to use class methods as callbacks is available
@@ -499,7 +499,7 @@
   switch ($section)
     {
     case 'admin/help#taxonews':
-      $ret = $help 
+      $ret = $help
       . t('<p>This module creates blocks containing a selection of node titles, linking to the node themselves. Blocks are created for each taxonomy term in the vocabularies enabled for block generation.</p>')
         . t('<p>Settings allow the administrator to choose the age limit for nodes included in the blocks, as well as various settings to handle special cases like empty blocks.</p>')
         . t('<p>By default, nodes are displayed in reverse chronological order. If statistics.module is enabled and node counts are active, nodes can also be displayed by descending order of total views or daily views since their creation. The node selection process by creation date is not affected by these sorting rules.</p>');

