mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 09:05:48 +00:00
commit
92615299b7
@ -30,7 +30,7 @@ class GoogleSitemapController extends Controller {
|
|||||||
*/
|
*/
|
||||||
public function index($url) {
|
public function index($url) {
|
||||||
if(GoogleSitemap::enabled()) {
|
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"');
|
$this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"');
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ class GoogleSitemapController extends Controller {
|
|||||||
$page = $this->request->param('OtherID');
|
$page = $this->request->param('OtherID');
|
||||||
|
|
||||||
if(GoogleSitemap::enabled() && $class && $page) {
|
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"');
|
$this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user