default message text
* Allows to upload from publicy accessible URL. Set $wgAllowCopyUploads = true ; in LocalSettings.php
Limited to $wgMaxUploadSize (default:100MB); URL upload is limited to sysops by default
+* (bug 832) Return to user page after emailing a user
== Languages updated ==
$f = new EmailUserForm( $nu );
if ( "success" == $action ) {
- $f->showSuccess();
+ $f->showSuccess( $nu );
} else if ( "submit" == $action && $wgRequest->wasPosted() &&
$wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ) ) {
$f->doSubmit();
}
}
- function showSuccess() {
+ function showSuccess( &$user ) {
global $wgOut;
$wgOut->setPagetitle( wfMsg( "emailsent" ) );
$wgOut->addHTML( wfMsg( "emailsenttext" ) );
- $wgOut->returnToMain( false );
+ $wgOut->returnToMain( false, $user->getUserPage() );
}
}
?>