* Say "log in / create account" if an anonymous user can create an account, otherwise just "log in", consistently across skins. (Currently Monobook always says "log in / create account " and non-Monobook always says "log in".)
* On Special:UserRights, when you can add a group you can't remove or remove
one you can't add, a notice is printed to warn you
* (bug 12698) Create PAGESIZE parser function, to return the size of a page
+* Allow the "log in / create account" link in the toolbar to have different
+ text from Special:UserLogin title (new message 'nav-login-createaccount')
+* Say "log in / create account" if an anonymous user can create an account,
+ otherwise just "log in", consistently across skins
=== Bug fixes in 1.13 ===
$q = '';
} else { $q = "returnto={$rt}"; }
+ $loginlink = $wgUser->isAllowed( 'createaccount' )
+ ? 'nav-login-createaccount'
+ : 'login';
$s .= "\n<br />" . $this->makeKnownLinkObj(
SpecialPage::getTitleFor( 'Userlogin' ),
- wfMsg( 'login' ), $q );
+ wfMsg( $loginlink ), $q );
} else {
$n = $wgUser->getName();
$rt = $wgTitle->getPrefixedURL();
'active' => false
);
} else {
+ global $wgUser;
+ $loginlink = $wgUser->isAllowed( 'createaccount' )
+ ? 'nav-login-createaccount'
+ : 'login';
if( $this->showIPinHeader() ) {
$href = &$this->userpageUrlDetails['href'];
$personal_urls['anonuserpage'] = array(
'active' => ( $pageurl == $href )
);
$personal_urls['anonlogin'] = array(
- 'text' => wfMsg('userlogin'),
+ 'text' => wfMsg( $loginlink ),
'href' => self::makeSpecialUrl( 'Userlogin', 'returnto=' . $this->thisurl ),
'active' => $wgTitle->isSpecial( 'Userlogin' )
);
} else {
$personal_urls['login'] = array(
- 'text' => wfMsg('userlogin'),
+ 'text' => wfMsg( $loginlink ),
'href' => self::makeSpecialUrl( 'Userlogin', 'returnto=' . $this->thisurl ),
'active' => $wgTitle->isSpecial( 'Userlogin' )
);
'externaldberror' => 'There was either an external authentication database error or you are not allowed to update your external account.',
'loginproblem' => '<b>There has been a problem with your login.</b><br />Try again!',
'login' => 'Log in',
+'nav-login-createaccount' => 'Log in / create account',
'loginprompt' => 'You must have cookies enabled to log in to {{SITENAME}}.',
'userlogin' => 'Log in / create account',
'logout' => 'Log out',
'externaldberror',
'loginproblem',
'login',
+ 'nav-login-createaccount',
'loginprompt',
'userlogin',
'logout',