Commit ad346f45 authored by andrei.dincu's avatar andrei.dincu

Issue #2249723 by andrei.dincu: minimum_lifetime instead of minimum_lifetine in xmlsitemap.module

parent 9e698f0c
......@@ -266,7 +266,7 @@ function xmlsitemap_cron() {
// If the minimum sitemap lifetime hasn't been passed, skip.
$lifetime = REQUEST_TIME - \Drupal::config('xmlsitemap.settings')->get('generated_last');
if ($lifetime < \Drupal::config('xmlsitemap.settings')->get('minimum_lifetine')) {
if ($lifetime < \Drupal::config('xmlsitemap.settings')->get('minimum_lifetime')) {
return;
}
xmlsitemap_xmlsitemap_index_links(100);
......@@ -308,7 +308,7 @@ function xmlsitemap_variables() {
return array(
'rebuild_needed' => FALSE,
'regenerate_needed' => FALSE,
'minimum_lifetine' => 0,
'minimum_lifetime' => 0,
'generated_last' => 0,
'xsl' => 1,
'prefetch_aliases' => 1,
......
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