r101850 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101849‎ | r101850 | r101851 >
Date:18:56, 3 November 2011
Author:foxtrott
Status:ok
Tags:
Comment:
bugfix (autoedit Ajax handler reports error on successful edits)
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php
@@ -63,6 +63,7 @@
6464
6565 } else {
6666
 67+ $result->setResponseCode('400 Bad Request');
6768 $result = wfMsgReplaceArgs( $errortext, array($result) );
6869 }
6970
@@ -84,7 +85,6 @@
8586
8687
8788 $result = new AjaxResponse($wgParser->parse( $result, $title, $parseroptions )->getText());
88 - $result->setResponseCode('400 Bad Request');
8989 $result->setContentType('text/html');
9090
9191 return $result;

Status & tagging log