From: umherirrender Date: Wed, 6 Jun 2012 17:48:27 +0000 (+0200) Subject: Change order of login/create account X-Git-Tag: 1.31.0-rc.0~23369^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=54a4a82f4ccfcb6c7d98fa6e28f5c03806276f8a;p=lhc%2Fweb%2Fwiklou.git Change order of login/create account With this the position of the login link in the right corner is not changed with $wgUseCombindedLoginLink = false; Gerrit has also first "register" and than "log in" in the corner. Change-Id: I8d1000cf53ab792b3f69438004e5ae181acba645 --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 114a55cc0b..b74f7c59b0 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -644,6 +644,9 @@ class SkinTemplate extends Skin { } } + if ( isset( $createaccount_url ) ) { + $personal_urls['createaccount'] = $createaccount_url; + } if( $this->showIPinHeader() ) { $href = &$this->userpageUrlDetails['href']; @@ -665,9 +668,6 @@ class SkinTemplate extends Skin { } else { $personal_urls['login'] = $login_url; } - if ( isset($createaccount_url) ) { - $personal_urls['createaccount'] = $createaccount_url; - } } wfRunHooks( 'PersonalUrls', array( &$personal_urls, &$title ) );