mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-06 08:08:33 +02:00
BUGFIX: disable function re-enabled
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101792 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e05f70102c
commit
deaa1d675e
@ -58,6 +58,13 @@ class ContentNegotiator {
|
|||||||
self::$enabled = true;
|
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.
|
* Returns true if negotation is enabled for the given response.
|
||||||
* By default, negotiation is only enabled for pages that have the xml header.
|
* By default, negotiation is only enabled for pages that have the xml header.
|
||||||
|
Loading…
Reference in New Issue
Block a user