Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -904,9 +904,14 @@ |
905 | 905 | global $wgUser; |
906 | 906 | # Run any hooks; display injected HTML |
907 | 907 | $injected_html = ''; |
| 908 | + $welcome_creation_msg = 'welcomecreation'; |
| 909 | + |
908 | 910 | wfRunHooks( 'UserLoginComplete', array( &$wgUser, &$injected_html ) ); |
909 | | - |
910 | | - $this->displaySuccessfulLogin( 'welcomecreation', $injected_html ); |
| 911 | + |
| 912 | + //let any extensions change what message is shown |
| 913 | + wfRunHooks( 'BeforeWelcomeCreation', array( &$welcome_creation_msg, &$injected_html ) ); |
| 914 | + |
| 915 | + $this->displaySuccessfulLogin( $welcome_creation_msg, $injected_html ); |
911 | 916 | } |
912 | 917 | |
913 | 918 | /** |
— | — | @@ -916,7 +921,10 @@ |
917 | 922 | global $wgOut, $wgUser; |
918 | 923 | |
919 | 924 | $wgOut->setPageTitle( wfMsg( 'loginsuccesstitle' ) ); |
920 | | - $wgOut->addWikiMsg( $msgname, $wgUser->getName() ); |
| 925 | + if( $msgname ){ |
| 926 | + $wgOut->addWikiMsg( $msgname, $wgUser->getName() ); |
| 927 | + } |
| 928 | + |
921 | 929 | $wgOut->addHTML( $injected_html ); |
922 | 930 | |
923 | 931 | if ( !empty( $this->mReturnTo ) ) { |