Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -930,8 +930,10 @@ |
931 | 931 | } |
932 | 932 | |
933 | 933 | if( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) { |
934 | | - $id = User::idFromName( $this->mTitle->getText() ); |
935 | | - $ip = User::isIP( $this->mTitle->getText() ); |
| 934 | + $parts = explode( '/', $this->mTitle->getText() ); |
| 935 | + $rootUser = $parts[0]; |
| 936 | + $id = User::idFromName( $rootUser ); |
| 937 | + $ip = User::isIP( $rootUser ); |
936 | 938 | } else { |
937 | 939 | $id = 0; |
938 | 940 | $ip = false; |
— | — | @@ -939,7 +941,7 @@ |
940 | 942 | |
941 | 943 | if( $id || $ip ) { # both anons and non-anons have contribs list |
942 | 944 | $nav_urls['contributions'] = array( |
943 | | - 'href' => self::makeSpecialUrlSubpage( 'Contributions', $this->mTitle->getText() ) |
| 945 | + 'href' => self::makeSpecialUrlSubpage( 'Contributions', $rootUser ) |
944 | 946 | ); |
945 | 947 | |
946 | 948 | if( $id ) { |
— | — | @@ -947,7 +949,7 @@ |
948 | 950 | $nav_urls['log'] = array( |
949 | 951 | 'href' => $logPage->getLocalUrl( |
950 | 952 | array( |
951 | | - 'user' => $this->mTitle->getText() |
| 953 | + 'user' => $rootUser |
952 | 954 | ) |
953 | 955 | ) |
954 | 956 | ); |
— | — | @@ -957,7 +959,7 @@ |
958 | 960 | |
959 | 961 | if ( $wgUser->isAllowed( 'block' ) ) { |
960 | 962 | $nav_urls['blockip'] = array( |
961 | | - 'href' => self::makeSpecialUrlSubpage( 'Blockip', $this->mTitle->getText() ) |
| 963 | + 'href' => self::makeSpecialUrlSubpage( 'Blockip', $rootUser ) |
962 | 964 | ); |
963 | 965 | } else { |
964 | 966 | $nav_urls['blockip'] = false; |
— | — | @@ -970,7 +972,7 @@ |
971 | 973 | $nav_urls['emailuser'] = false; |
972 | 974 | if( $this->showEmailUser( $id ) ) { |
973 | 975 | $nav_urls['emailuser'] = array( |
974 | | - 'href' => self::makeSpecialUrlSubpage( 'Emailuser', $this->mTitle->getText() ) |
| 976 | + 'href' => self::makeSpecialUrlSubpage( 'Emailuser', $rootUser ) |
975 | 977 | ); |
976 | 978 | } |
977 | 979 | wfProfileOut( __METHOD__ ); |