diff --git a/code/controllers/GoogleSitemapController.php b/code/controllers/GoogleSitemapController.php index faebef3..89afeda 100644 --- a/code/controllers/GoogleSitemapController.php +++ b/code/controllers/GoogleSitemapController.php @@ -38,8 +38,6 @@ class GoogleSitemapController extends Controller public function index($url) { if (GoogleSitemap::enabled()) { - Config::inst()->update('SilverStripe\\View\\SSViewer', 'set_source_file_comments', false); - $this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"'); $this->getResponse()->addHeader('X-Robots-Tag', 'noindex'); @@ -66,8 +64,6 @@ class GoogleSitemapController extends Controller $page = $this->request->param('OtherID'); if (GoogleSitemap::enabled() && $class && $page && ($class == SiteTree::class || $class == 'GoogleSitemapRoute' || GoogleSitemap::is_registered($class))) { - Config::inst()->update('SilverStripe\\View\\SSViewer', 'set_source_file_comments', false); - $this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"'); $this->getResponse()->addHeader('X-Robots-Tag', 'noindex');