/**
* Replace some globals to make sure the fact that the user has just been logged in is
* reflected in the current request.
- * @param User $user
*/
protected function setSessionUserForCurrentRequest() {
global $wgUser, $wgLang;
// Don't show a "create account" link if the user can't.
if ( $this->showCreateAccountLink() ) {
// link to the other action
- $linkTitle = $this->getTitleFor( $this->isSignup() ? 'Userlogin' :'CreateAccount' );
+ $linkTitle = $this->getTitleFor( $this->isSignup() ? 'Userlogin' : 'CreateAccount' );
$linkq = $this->getReturnToQueryStringFragment();
// Pass any language selection on to the mode switch link
if ( $this->mLanguage ) {
],
$this->msg(
$loggedIn ? 'userlogin-createanother' : 'userlogin-joinproject'
- )->escaped()
+ )->text()
)
);
},