Index: trunk/phase3/includes/SkinCologneBlue.php |
— | — | @@ -97,7 +97,20 @@ |
98 | 98 | } |
99 | 99 | function sysLinks() |
100 | 100 | { |
101 | | - global $wgUser; |
| 101 | + global $wgUser, $wgLang, $wgTitle; |
| 102 | + $li = $wgLang->specialPage("Userlogin"); |
| 103 | + $lo = $wgLang->specialPage("Userlogout"); |
| 104 | + |
| 105 | + $rt = $wgTitle->getPrefixedURL(); |
| 106 | + if ( 0 == strcasecmp( urlencode( $lo ), $rt ) ) { |
| 107 | + $q = ""; |
| 108 | + } else { |
| 109 | + $q = "returnto={$rt}"; |
| 110 | + } |
| 111 | + |
| 112 | + $s .= "\n<br>" . $this->makeKnownLink( $li, |
| 113 | + wfMsg( "login" ), $q ); |
| 114 | + |
102 | 115 | $s = "" . |
103 | 116 | $this->makeKnownLink( wfMsg( "mainpage" ), wfMsg( "mainpage" ) ) |
104 | 117 | . " | " . |
— | — | @@ -107,8 +120,17 @@ |
108 | 121 | . " | " . |
109 | 122 | $this->makeKnownLink( wfMsg( "faqpage" ), wfMsg("faq") ) |
110 | 123 | . " | " . |
111 | | - $this->specialLink( "specialpages" ) . " | " . |
112 | | - $this->specialLink( $wgUser->getID() ? "userlogout" : "userlogin" ) ; |
| 124 | + $this->specialLink( "specialpages" ) . " | "; |
| 125 | + |
| 126 | + if ( $wgUser->getID() ) |
| 127 | + { |
| 128 | + $s .= $this->makeKnownLink( $lo, wfMsg( "logout" ), $q ); |
| 129 | + } |
| 130 | + else |
| 131 | + { |
| 132 | + $s .= $this->makeKnownLink( $li, wfMsg( "login" ), $q ); |
| 133 | + } |
| 134 | + |
113 | 135 | return $s; |
114 | 136 | } |
115 | 137 | |