Index: trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php |
— | — | @@ -63,6 +63,7 @@ |
64 | 64 | |
65 | 65 | } else { |
66 | 66 | |
| 67 | + $result->setResponseCode('400 Bad Request'); |
67 | 68 | $result = wfMsgReplaceArgs( $errortext, array($result) ); |
68 | 69 | } |
69 | 70 | |
— | — | @@ -84,7 +85,6 @@ |
85 | 86 | |
86 | 87 | |
87 | 88 | $result = new AjaxResponse($wgParser->parse( $result, $title, $parseroptions )->getText()); |
88 | | - $result->setResponseCode('400 Bad Request'); |
89 | 89 | $result->setContentType('text/html'); |
90 | 90 | |
91 | 91 | return $result; |