BUGFIX moved sitemap.xml Director rule to googlesitemaps module
BUGFIX Moved GoogleSitemap.ss to googlesitemaps module BUGFIX disabling template comments for xml output like sitemap.xml
This commit is contained in:
parent
758715c205
commit
159a0a81a8
|
@ -1,2 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
Director::addRules(10, array(
|
||||||
|
'sitemap.xml' => 'GoogleSitemap',
|
||||||
|
));
|
||||||
?>
|
?>
|
|
@ -125,6 +125,7 @@ class GoogleSitemap extends Controller {
|
||||||
|
|
||||||
function index($url) {
|
function index($url) {
|
||||||
if(self::$enabled) {
|
if(self::$enabled) {
|
||||||
|
SSViewer::set_source_file_comments(false);
|
||||||
// We need to override the default content-type
|
// We need to override the default content-type
|
||||||
ContentNegotiator::disable();
|
ContentNegotiator::disable();
|
||||||
header('Content-type: application/xml; charset="utf-8"');
|
header('Content-type: application/xml; charset="utf-8"');
|
||||||
|
|
Loading…
Reference in New Issue