summaryrefslogtreecommitdiff
path: root/includes/SpecialEmailuser.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SpecialEmailuser.php')
-rw-r--r--includes/SpecialEmailuser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/SpecialEmailuser.php b/includes/SpecialEmailuser.php
index c66389e1..d711947f 100644
--- a/includes/SpecialEmailuser.php
+++ b/includes/SpecialEmailuser.php
@@ -49,7 +49,7 @@ function wfSpecialEmailuser( $par ) {
$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();
@@ -148,13 +148,13 @@ class EmailUserForm {
}
}
- function showSuccess() {
+ function showSuccess( &$user ) {
global $wgOut;
$wgOut->setPagetitle( wfMsg( "emailsent" ) );
$wgOut->addHTML( wfMsg( "emailsenttext" ) );
- $wgOut->returnToMain( false );
+ $wgOut->returnToMain( false, $user->getUserPage() );
}
}
?>