/[drupal]/contributions/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module
ViewVC logotype

Diff of /contributions/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module

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

revision 1.19.2.70, Sat Feb 28 21:01:02 2009 UTC revision 1.19.2.71, Sun Mar 1 00:04:38 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: xmlsitemap_node.module,v 1.19.2.69 2009/02/28 15:08:35 kiam Exp $  // $Id: xmlsitemap_node.module,v 1.19.2.70 2009/02/28 21:01:02 kiam Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 270  function xmlsitemap_node_xmlsitemap_desc Line 270  function xmlsitemap_node_xmlsitemap_desc
270  function xmlsitemap_node_xmlsitemap_links($modules) {  function xmlsitemap_node_xmlsitemap_links($modules) {
271    if (isset($modules['xmlsitemap']) || isset($modules['xmlsitemap_node'])) {    if (isset($modules['xmlsitemap']) || isset($modules['xmlsitemap_node'])) {
272      db_query("DELETE FROM {xmlsitemap} WHERE type ='node'");      db_query("DELETE FROM {xmlsitemap} WHERE type ='node'");
273      $query = "SELECT n.nid, n.vid, n.type, n.uid, n.promote, xn.changed, xn.previously_changed, xn.priority_override, xn.comment_ratio      $query = "SELECT n.nid, n.vid, n.type, n.language, n.uid, n.promote, xn.changed, xn.previously_changed, xn.priority_override, xn.comment_ratio
274        FROM {node} n        FROM {node} n
275        INNER JOIN {xmlsitemap_node} xn ON n.nid = xn.nid        INNER JOIN {xmlsitemap_node} xn ON n.nid = xn.nid
276        WHERE n.status > 0        WHERE n.status > 0
# Line 290  function xmlsitemap_node_xmlsitemap_link Line 290  function xmlsitemap_node_xmlsitemap_link
290        $row->loc = 'node/'. $node->nid;        $row->loc = 'node/'. $node->nid;
291        $row->id = $node->nid;        $row->id = $node->nid;
292        $row->sid = $node->vid;        $row->sid = $node->vid;
293          $row->language = $node->language;
294        $row->changed = $node->changed;        $row->changed = $node->changed;
295        $row->changefreq = max(time() - $node->changed, empty($node->previously_changed) ? 0 : $node->changed - $node->previously_changed);        $row->changefreq = max(time() - $node->changed, empty($node->previously_changed) ? 0 : $node->changed - $node->previously_changed);
296        if ($node->priority_override != -2.0) {        if ($node->priority_override != -2.0) {

Legend:
Removed from v.1.19.2.70  
changed lines
  Added in v.1.19.2.71

  ViewVC Help
Powered by ViewVC 1.1.2