Index: trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php |
— | — | @@ -61,13 +61,8 @@ |
62 | 62 | |
63 | 63 | // This feature is only available for logged-in users. |
64 | 64 | if ( !$wgUser->isLoggedIn() ) { |
65 | | - $wgOut->setPageTitle( wfMsgForContent( 'user-profile-update-notloggedin-title' ) ); |
66 | | - $wgOut->addHTML( |
67 | | - wfMsgForContent( 'user-profile-update-notloggedin-text', |
68 | | - SpecialPage::getTitleFor( 'Userlogin' )->escapeFullURL(), |
69 | | - SpecialPage::getTitleFor( 'Userlogin', 'signup' )->escapeFullURL() |
70 | | - ) |
71 | | - ); |
| 65 | + $wgOut->setPageTitle( wfMsg( 'user-profile-update-notloggedin-title' ) ); |
| 66 | + $wgOut->addWikiMsg( 'user-profile-update-notloggedin-text' ); |
72 | 67 | return; |
73 | 68 | } |
74 | 69 | |
Index: trunk/extensions/SocialProfile/UserProfile/SpecialEditProfile.php |
— | — | @@ -30,13 +30,8 @@ |
31 | 31 | |
32 | 32 | // This feature is only available for logged-in users. |
33 | 33 | if ( !$wgUser->isLoggedIn() ) { |
34 | | - $wgOut->setPageTitle( wfMsgForContent( 'user-profile-update-notloggedin-title' ) ); |
35 | | - $wgOut->addHTML( |
36 | | - wfMsgForContent( 'user-profile-update-notloggedin-text', |
37 | | - SpecialPage::getTitleFor( 'Userlogin' )->escapeFullURL(), |
38 | | - SpecialPage::getTitleFor( 'Userlogin', 'signup' )->escapeFullURL() |
39 | | - ) |
40 | | - ); |
| 34 | + $wgOut->setPageTitle( wfMsg( 'user-profile-update-notloggedin-title' ) ); |
| 35 | + $wgOut->addWikiMsg( 'user-profile-update-notloggedin-text' ); |
41 | 36 | return; |
42 | 37 | } |
43 | 38 | |
Index: trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | 'user-recent-system-gift' => 'Received an award', |
91 | 91 | 'user-profile-update-notloggedin-title' => 'Cannot edit your profile without being logged in', |
92 | 92 | 'user-profile-update-notloggedin-text' => 'You cannot edit your profile without being logged in. |
93 | | -Click <a href="$1">here</a> to login or click <a href="$2">here</a> to register.', |
| 93 | +Click [[Special:UserLogin|here]] to login or click [[Special:UserLogin/signup|here]] to register.', |
94 | 94 | 'user-profile-update-saved' => 'Your profile has been saved', |
95 | 95 | 'user-profile-edit-profile-update-saved' => 'The user\'s profile was successfully saved', |
96 | 96 | 'user-profile-update-log-section' => 'changed section', |