Merge branch 'master' of https://github.com/silverstripe-labs/silverstripe-googlesitemaps
This commit is contained in:
commit
f0ee2a7ff9
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"email": "will@fullscreen.io"
|
||||
}],
|
||||
"require": {
|
||||
"silverstripe/framework": "~3.1"
|
||||
"silverstripe/framework": ">=3.1.x-dev,<4.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue