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:
ischommer 2008-12-05 02:47:07 +00:00
parent 758715c205
commit 159a0a81a8
2 changed files with 4 additions and 0 deletions

View File

@ -1,2 +1,5 @@
<?php <?php
Director::addRules(10, array(
'sitemap.xml' => 'GoogleSitemap',
));
?> ?>

View File

@ -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"');