This commit is contained in:
g4b0 2013-07-17 10:40:24 +02:00
commit f0ee2a7ff9
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ class GoogleSitemapController extends Controller {
*/
public function index($url) {
if(GoogleSitemap::enabled()) {
SSViewer::set_source_file_comments(false);
Config::inst()->update('SSViewer', 'set_source_file_comments', false);
$this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"');
@ -56,7 +56,7 @@ class GoogleSitemapController extends Controller {
$page = $this->request->param('OtherID');
if(GoogleSitemap::enabled() && $class && $page) {
SSViewer::set_source_file_comments(false);
Config::inst()->update('SSViewer', 'set_source_file_comments', false);
$this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"');
@ -70,4 +70,4 @@ class GoogleSitemapController extends Controller {
return new SS_HTTPResponse('Page not found', 404);
}
}
}
}

View File

@ -10,6 +10,6 @@
"email": "will@fullscreen.io"
}],
"require": {
"silverstripe/framework": "~3.1"
"silverstripe/framework": ">=3.1.x-dev,<4.0"
}
}