From 3c50867682598e850109dad7df08b4a796bef755 Mon Sep 17 00:00:00 2001 From: lape Date: Thu, 31 Aug 2017 12:34:16 -0300 Subject: [PATCH] Issue #2329991 by lape, Fabianx, Mac_Weber, RenatoG: XML sitemap needs to bootstrap to DRUPAL_BOOTSTRAP_CONFIGURATION before using variable_get in hook_drush_command() --- xmlsitemap.drush.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmlsitemap.drush.inc b/xmlsitemap.drush.inc index 4bd09648..05024127 100644 --- a/xmlsitemap.drush.inc +++ b/xmlsitemap.drush.inc @@ -11,6 +11,8 @@ * Implements hook_drush_command(). */ function xmlsitemap_drush_command() { + drupal_bootstrap(DRUPAL_BOOTSTRAP_VARIABLES); + $items['xmlsitemap-regenerate'] = array( 'description' => 'Regenerate the XML sitemap files.', 'callback' => 'drush_xmlsitemap_regenerate', -- GitLab