* (bug 27688) Simplify queries to list user block information
* (bug 27708) list=users does not have a property to return user id
* (bug 27715) imageinfo didn't respect revdelete
+* (bug 27862) Useremail module didn't properly return success on success.
=== Languages updated in 1.18 ===
'CCMe' => $params['ccme'],
);
$retval = SpecialEmailUser::submit( $data );
+
+ if ( $retval instanceof Status ) {
+ // SpecialEmailUser sometimes returns a status
+ // sometimes it doesn't.
+ if ( $retval->isGood() ) {
+ $retval = true;
+ } else {
+ $retval = $retval->getErrorsArray();
+ }
+ }
+
if ( $retval === true ) {
$result = array( 'result' => 'Success' );
} else {
* getPermissionsError(). It is probably also a good
* idea to check the edit token and ping limiter in advance.
*
- * @return Mixed: True on success, String on error
+ * @return Mixed: Status object, or potentially a String on error
+ * or maybe even true on success if anything uses the EmailUser hook.
*/
public static function submit( $data ) {
global $wgUser, $wgUserEmailUseReplyTo;