Index: branches/wmf/1.17wmf1/includes/specials/SpecialUserlogin.php |
— | — | @@ -872,9 +872,13 @@ |
873 | 873 | global $wgUser; |
874 | 874 | # Run any hooks; display injected HTML |
875 | 875 | $injected_html = ''; |
| 876 | + $welcome_creation_msg = 'welcomecreation'; |
876 | 877 | wfRunHooks( 'UserLoginComplete', array( &$wgUser, &$injected_html ) ); |
877 | 878 | |
878 | | - $this->displaySuccessfulLogin( 'welcomecreation', $injected_html ); |
| 879 | + //let any extensions change what message is shown |
| 880 | + wfRunHooks( 'BeforeWelcomeCreation', array( &$welcome_creation_msg, &$injected_html ) ); |
| 881 | + |
| 882 | + $this->displaySuccessfulLogin( $welcome_creation_msg, $injected_html ); |
879 | 883 | } |
880 | 884 | |
881 | 885 | /** |
— | — | @@ -886,7 +890,9 @@ |
887 | 891 | $wgOut->setPageTitle( wfMsg( 'loginsuccesstitle' ) ); |
888 | 892 | $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
889 | 893 | $wgOut->setArticleRelated( false ); |
890 | | - $wgOut->addWikiMsg( $msgname, $wgUser->getName() ); |
| 894 | + if( $msgname ){ |
| 895 | + $wgOut->addWikiMsg( $msgname, $wgUser->getName() ); |
| 896 | + } |
891 | 897 | $wgOut->addHTML( $injected_html ); |
892 | 898 | |
893 | 899 | if ( !empty( $this->mReturnTo ) ) { |