mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
BUGFIX: Remove ref to obsolete ContentNegotiator::disable. See sapphire r93682
This commit is contained in:
parent
b8ae8755d5
commit
7a4f572fbc
@ -139,8 +139,6 @@ class GoogleSitemap extends Controller {
|
|||||||
function index($url) {
|
function index($url) {
|
||||||
if(self::$enabled) {
|
if(self::$enabled) {
|
||||||
SSViewer::set_source_file_comments(false);
|
SSViewer::set_source_file_comments(false);
|
||||||
// We need to override the default content-type
|
|
||||||
ContentNegotiator::disable();
|
|
||||||
$this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"');
|
$this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"');
|
||||||
|
|
||||||
// But we want to still render.
|
// But we want to still render.
|
||||||
|
Loading…
Reference in New Issue
Block a user