Index: trunk/extensions/UsabilityInitiative/OptIn/SpecialOptIn.php |
— | — | @@ -18,13 +18,9 @@ |
19 | 19 | $wgOut->setPageTitle( wfMsg( 'optin-title' ) ); |
20 | 20 | |
21 | 21 | if ( $wgUser->isAnon() ) { |
22 | | - $llink = $wgUser->getSkin()->link( |
23 | | - SpecialPage::getTitleFor( 'Userlogin' ), |
24 | | - wfMsgHtml( 'loginreqlink' ), |
25 | | - array(), |
26 | | - array( 'returnto' => $this->getTitle()->getPrefixedUrl() ) |
27 | | - ); |
28 | | - $wgOut->addHTML( wfMsgWikiHtml( 'optin-needlogin', $llink ) ); |
| 22 | + $url = SpecialPage::getTitleFor( 'Userlogin' )->getFullURL( |
| 23 | + array( 'returnto' => $this->getTitle()->getPrefixedUrl() ) ); |
| 24 | + $wgOut->addWikiText( wfMsg( 'optin-needlogin', $url ) ); |
29 | 25 | return; |
30 | 26 | } |
31 | 27 | |
Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.i18n.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | 'optin' => 'OptIn', |
17 | 17 | 'optin-desc' => 'Allow users to opt-in to the Usability Initiative\'s usability enhancements', |
18 | 18 | 'optin-title' => 'Usability Intitiative enhancements', |
19 | | - 'optin-needlogin' => 'You need to $1 to opt-in to the Usability Initiative\'s usability enhancements.', |
| 19 | + 'optin-needlogin' => '<div class="plainlinks">You need to [$1 log in] to opt-in to the Usability Initiative\'s usability enhancements.</div>', |
20 | 20 | 'optin-intro' => 'The Wikipedia Usability Initiative has developed a new skin and a new edit toolbar intended to enhance the usability of Wikipedia. These enhancements have not been enabled for all users yet, but you can opt-in to them by clicking the button below.', |
21 | 21 | 'optin-success-in' => 'You have successfully opted in to the Usability Initiative\'s usability enhancements. You can opt back out at any time by clicking the button below.', |
22 | 22 | 'optin-success-out' => 'You have successfully opted out of the Usability Initiative\'s usability enhancements. You can opt back in at any time by clicking the button below.', |