r97248 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97247‎ | r97248 | r97249 >
Date:08:27, 16 September 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Followup r96653. Reduced the amount of constant markup in the message.
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuth.i18n.php (modified) (history)
  • /trunk/extensions/CentralAuth/specials/SpecialMergeAccount.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/specials/SpecialMergeAccount.php
@@ -16,7 +16,9 @@
1717 }
1818
1919 if ( !$wgUser->isLoggedIn() ) {
20 - $wgOut->addWikiMsg( 'centralauth-merge-notlogged' );
 20+ $loginpage = SpecialPage::getTitleFor( 'Userlogin' );
 21+ $loginurl = $loginpage->getFullUrl( array( 'returnto' => $this->getTitle->getPrefixedText() ) );
 22+ $wgOut->addWikiMsg( 'centralauth-merge-notlogged', $loginurl );
2123 $wgOut->addWikiMsg( 'centralauth-readmore-text' );
2224
2325 return;
Index: trunk/extensions/CentralAuth/CentralAuth.i18n.php
@@ -18,7 +18,7 @@
1919 'centralauth-desc' => '[[Special:MergeAccount|Merge account]] across wikis of {{int:Centralauth-groupname}}',
2020 'centralauth-mergeaccount-desc' => '[[Special:MergeAccount|Merges multiple accounts]] for Single User Login',
2121 'centralauth-merge-denied' => 'Sorry, you do not have permission to access this page.',
22 - 'centralauth-merge-notlogged' => 'Please <span class="plainlinks">[{{fullurl:{{#special:UserLogin}}|returnto={{urlencode:{{#special:MergeAccount}}|WIKI}}}} log in]</span> to check if your accounts have been fully merged.',
 22+ 'centralauth-merge-notlogged' => 'Please <span class="plainlinks">[$1 log in]</span> to check if your accounts have been fully merged.',
2323 'centralauth-merge-welcome' => "'''Your user account has not yet been migrated to the unified login system of {{int:Centralauth-groupname}}.'''
2424
2525 If you choose to migrate your accounts, you will be able to use the same username and password to log in to all wikis of {{int:Centralauth-groupname}} in all available languages.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r96653Fixed a bug in r52157. Special pages with spaces in their names would cause p...nikerabbit09:27, 9 September 2011

Status & tagging log