Remove unneeded config flag

This commit is contained in:
Will Rossiter 2017-05-10 07:40:17 +12:00
parent 77f6a02ae7
commit 56b23dbdf8
1 changed files with 0 additions and 4 deletions

View File

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