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

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

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

revision 1.11.2.39, Sun Mar 1 01:57:49 2009 UTC revision 1.11.2.40, Sun Mar 1 04:42:40 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: xmlsitemap_term.module,v 1.11.2.38 2009/02/28 21:00:49 kiam Exp $  // $Id: xmlsitemap_term.module,v 1.11.2.39 2009/03/01 01:57:49 kiam Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 171  function xmlsitemap_term_taxonomy($op, $ Line 171  function xmlsitemap_term_taxonomy($op, $
171            $row = new stdClass();            $row = new stdClass();
172            $row->tid = $array['tid'];            $row->tid = $array['tid'];
173            $row->vid = $array['vid'];            $row->vid = $array['vid'];
174            $row->changed = time();            $row->changed = XMLSITEMAP_TIME;
175            $row->priority_override = isset($array['xmlsitemap_term_priority']) ? $array['xmlsitemap_term_priority'] : -2.0;            $row->priority_override = isset($array['xmlsitemap_term_priority']) ? $array['xmlsitemap_term_priority'] : -2.0;
176            drupal_write_record('xmlsitemap_term', $row);            drupal_write_record('xmlsitemap_term', $row);
177          }          }
# Line 185  function xmlsitemap_term_taxonomy($op, $ Line 185  function xmlsitemap_term_taxonomy($op, $
185            $row = new stdClass();            $row = new stdClass();
186            $row->tid = $array['tid'];            $row->tid = $array['tid'];
187            $row->vid = $array['vid'];            $row->vid = $array['vid'];
188            $row->changed = time();            $row->changed = XMLSITEMAP_TIME;
189            $row->priority_override = isset($array['xmlsitemap_term_priority']) ? $array['xmlsitemap_term_priority'] : -2.0;            $row->priority_override = isset($array['xmlsitemap_term_priority']) ? $array['xmlsitemap_term_priority'] : -2.0;
190          }          }
191          else {          else {
# Line 237  function xmlsitemap_term_xmlsitemap_link Line 237  function xmlsitemap_term_xmlsitemap_link
237        }        }
238        $row->id = $term->tid;        $row->id = $term->tid;
239        $row->changed = $term->changed;        $row->changed = $term->changed;
240        $row->changefreq = max(time() - $term->changed, empty($term->previously_changed) ? 0 : $term->changed - $term->previously_changed);        $row->changefreq = max(XMLSITEMAP_TIME - $term->changed, empty($term->previously_changed) ? 0 : $term->changed - $term->previously_changed);
241        if ($term->priority_override != -2.0) {        if ($term->priority_override != -2.0) {
242          $priority = $term->priority_override;          $priority = $term->priority_override;
243        }        }

Legend:
Removed from v.1.11.2.39  
changed lines
  Added in v.1.11.2.40

  ViewVC Help
Powered by ViewVC 1.1.2