Commit 0cfa2088 authored by Dave Reid's avatar Dave Reid

by Dave Reid: Added debugging info for xmlsitemap_output_chunk().

parent d2fbd42e
......@@ -34,6 +34,16 @@ function xmlsitemap_output_chunk() {
// Fallback to non-context sitemap?
$file = xmlsitemap_get_file_from_context($context, $chunk);
if (variable_get('xmlsitemap_developer_mode', 0) && isset($_GET['debug'])) {
$output = array();
$output[] = "Chunk: $chunk";
$output[] = "Context: " . print_r($context, TRUE);
$output[] = "Cache file location: $file";
$output[] = "Cache file exists: " . (file_exists($file) ? 'Yes' : 'No');
return implode('<br />', $output);
}
return xmlsitemap_output_file($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