MINOR Removed ContentNegoitator::disable() from FormResponse - it's disabled already

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@93659 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-11-26 22:05:17 +00:00 committed by Sam Minnee
parent bd37d67a48
commit 24ed6150cf

View File

@ -76,7 +76,6 @@ class FormResponse {
if(isset($_REQUEST['forcehtml'])) { if(isset($_REQUEST['forcehtml'])) {
return self::$non_ajax_content; return self::$non_ajax_content;
} else if(isset($_REQUEST['forceajax']) || Director::is_ajax()) { } else if(isset($_REQUEST['forceajax']) || Director::is_ajax()) {
ContentNegotiator::disable();
// TODO figure out a way to stay backwards-compatible with Ajax.Evaluator and still use the automatic evaluating of Prototype // TODO figure out a way to stay backwards-compatible with Ajax.Evaluator and still use the automatic evaluating of Prototype
//header("Content-type: text/javascript"); //header("Content-type: text/javascript");
return self::get_javascript(); return self::get_javascript();