Commit a6c9c0a6 authored by Dave Reid's avatar Dave Reid

Issue #2417021 by Dave Reid: Fixed empty elapsed time in drush...

Issue #2417021 by Dave Reid: Fixed empty elapsed time in drush xmlsitemap-regenerate or xmlsitemap-rebuild.
parent cfbe8c9e
......@@ -39,6 +39,7 @@ function drush_xmlsitemap_regenerate() {
module_load_include('', 'xmlsitemap');
// Run the batch process.
$vars = array(
......@@ -56,8 +57,12 @@ function drush_xmlsitemap_rebuild() {
// Build a list of rebuildable link types.
$rebuild_types = xmlsitemap_get_rebuildable_link_types();
if (empty($rebuild_types)) {
return drush_set_error("No link types are rebuildable.");
// Run the batch process.
xmlsitemap_run_unprogressive_batch('xmlsitemap_rebuild_batch', $rebuild_types, TRUE);
$vars = array(
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