Commit 5f0c97e0 authored by Dave Reid's avatar Dave Reid

#706762 by Dave Reid: Fixed links not updating when changefreq or changed values were updated.

parent 2d14a7ce
......@@ -317,7 +317,7 @@ function xmlsitemap_node_xmlsitemap_links() {
if ($old_row === FALSE) {
drupal_write_record('xmlsitemap', $row);
}
elseif ($old_row->type == 'node' && ($old_row->priority != $row->priority || $old_row->language != $row->language)) {
elseif ($old_row->type == 'node' && ($old_row->priority != $row->priority || $old_row->language != $row->language || $old_row->changed != $row->changed || $old_row->changefreq != $row->changefreq)) {
$row->lid = $old_row->lid;
drupal_write_record('xmlsitemap', $row, 'lid');
}
......
......@@ -98,7 +98,7 @@ function xmlsitemap_taxonomy_form_taxonomy_form_vocabulary_alter(&$form, &$from_
'#options' => xmlsitemap_priority_options('exclude'),
);
$form['submit']['#weight'] = isset($form['submit']['#weight']) ? $form['submit']['#weight'] + 1 : 1;
$form['delete']['#weight'] = isset($form['delete']['#weight']) ? $form['delete']['#weight'] + 1 : 1;
$form['delete']['#weight'] = isset($form['delete']['#weight']) ? $form['delete']['#weight'] + 2 : 2;
}
/**
......@@ -239,7 +239,7 @@ function xmlsitemap_taxonomy_xmlsitemap_links() {
if ($old_row === FALSE) {
drupal_write_record('xmlsitemap', $row);
}
elseif ($old_row->type = 'taxonomy' && $old_row->priority != $row->priority) {
elseif ($old_row->type = 'taxonomy' && ($old_row->priority != $row->priority || $old_row->changed != $row->changed || $old_row->changefreq != $row->changefreq)) {
$row->lid = $old_row->lid;
drupal_write_record('xmlsitemap', $row, 'lid');
}
......
......@@ -217,7 +217,7 @@ function xmlsitemap_user_xmlsitemap_links() {
if ($old_row === FALSE) {
drupal_write_record('xmlsitemap', $row);
}
elseif ($old_row->type == 'user' && $old_row->priority != $row->priority) {
elseif ($old_row->type == 'user' && ($old_row->priority != $row->priority || $old_row->changed != $row->changed || $old_row->changefreq != $row->changefreq)) {
$row->lid = $old_row->lid;
drupal_write_record('xmlsitemap', $row, 'lid');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment