Unverified Commit 2510b020 authored by Dave Reid's avatar Dave Reid Committed by Dave Reid
Browse files

Issue #3002353 by Dave Reid: Fixed PHP Notice: Undefined variable $context in...

Issue #3002353 by Dave Reid: Fixed PHP Notice: Undefined variable $context in XmlSitemapController::renderSitemapXml().
parent 6fc1dfe9
......@@ -77,7 +77,7 @@ class XmlSitemapController extends ControllerBase {
$module_path = drupal_get_path('module', 'xmlsitemap');
$template = $this->twig->loadTemplate($module_path . '/templates/sitemap-developer-mode.html.twig');
$elements = [
'current_context' => print_r($context, TRUE),
'current_context' => print_r(xmlsitemap_get_current_context(), TRUE),
'sitemap' => print_r($sitemap, TRUE),
'chunk' => $chunk,
'cache_file_location' => $file,
......
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