/[drupal]/contributions/modules/weblinks/weblinks.module
ViewVC logotype

Diff of /contributions/modules/weblinks/weblinks.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.86.2.41, Sat Aug 30 16:11:14 2008 UTC revision 1.86.2.42, Mon Sep 1 00:20:05 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: weblinks.module,v 1.86.2.40 2008/08/29 14:11:47 nancyw Exp $  // $Id: weblinks.module,v 1.86.2.41 2008/08/30 16:11:14 nancyw Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 994  function _weblinks_get_query($tid = 0, $ Line 994  function _weblinks_get_query($tid = 0, $
994      $query = 'SELECT COUNT(n.nid) FROM {node} n ';      $query = 'SELECT COUNT(n.nid) FROM {node} n ';
995    }    }
996    else {    else {
997      $query = 'SELECT n.nid FROM {node} n ';      $query = 'SELECT DISTINCT(n.nid) FROM {node} n ';
998    }    }
999    $query .= 'INNER JOIN {node_revisions} nr ON nr.vid = n.vid ';    $query .= 'INNER JOIN {node_revisions} nr ON nr.vid = n.vid ';
1000    $query .= 'INNER JOIN {weblinks} bw ON bw.vid = nr.vid ';    $query .= 'INNER JOIN {weblinks} bw ON bw.vid = nr.vid ';
# Line 1032  function _weblinks_get_query($tid = 0, $ Line 1032  function _weblinks_get_query($tid = 0, $
1032    }    }
1033    
1034    $query = db_rewrite_sql($query);    $query = db_rewrite_sql($query);
1035    // drupal_set_message("$tid / $sort / $query");
1036    
1037    if ($limit) {    if ($limit) {
1038      $result = db_query_range($query, $tid, 0, $limit);      $result = db_query_range($query, $tid, 0, $limit);

Legend:
Removed from v.1.86.2.41  
changed lines
  Added in v.1.86.2.42

  ViewVC Help
Powered by ViewVC 1.1.2