Merge pull request #41 from Mark-M/patch-1

FIX Use new config API
This commit is contained in:
Will Rossiter 2013-05-31 15:03:34 -07:00
commit 92615299b7
1 changed files with 3 additions and 3 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);
}
}
}
}