mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: disable function re-enabled (from r101792)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112036 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
068e1d63e0
commit
2996e2a60d
@ -57,6 +57,13 @@ class ContentNegotiator {
|
||||
static function enable() {
|
||||
self::$enabled = true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Disable content negotiation for all templates, not just those with the xml header.
|
||||
*/
|
||||
static function disable() {
|
||||
self::$enabled = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if negotation is enabled for the given response.
|
||||
|
Loading…
x
Reference in New Issue
Block a user