Change order of login/create account
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 6 Jun 2012 17:48:27 +0000 (19:48 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Wed, 6 Jun 2012 17:49:36 +0000 (19:49 +0200)
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

includes/SkinTemplate.php

index 114a55c..b74f7c5 100644 (file)
@@ -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 ) );