Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -203,7 +203,7 @@ |
204 | 204 | <?php } ?></li><?php |
205 | 205 | } |
206 | 206 | |
207 | | - foreach( array('contributions', 'blockip', 'emailuser', 'upload', 'specialpages', 'log') as $special ) { |
| 207 | + foreach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) { |
208 | 208 | |
209 | 209 | if($this->data['nav_urls'][$special]) { |
210 | 210 | ?><li id="t-<?php echo $special ?>"><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href']) |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -839,7 +839,6 @@ |
840 | 840 | $nav_urls['upload'] = false; |
841 | 841 | } |
842 | 842 | $nav_urls['specialpages'] = array( 'href' => self::makeSpecialUrl( 'Specialpages' ) ); |
843 | | - $nav_urls['log'] = array( 'href' => self::makeSpecialUrl( 'Log' ) ); |
844 | 843 | |
845 | 844 | // default permalink to being off, will override it as required below. |
846 | 845 | $nav_urls['permalink'] = false; |
— | — | @@ -892,10 +891,17 @@ |
893 | 892 | $ip = false; |
894 | 893 | } |
895 | 894 | |
896 | | - if($id || $ip) { # both anons and non-anons have contri list |
| 895 | + if($id || $ip) { # both anons and non-anons have contribs list |
897 | 896 | $nav_urls['contributions'] = array( |
898 | 897 | 'href' => self::makeSpecialUrlSubpage( 'Contributions', $this->mTitle->getText() ) |
899 | 898 | ); |
| 899 | + if( $id ) { |
| 900 | + $logPage = SpecialPage::getTitleFor( 'Log' ); |
| 901 | + $nav_urls['log'] = array( 'href' => $logPage->getLocalURL( "user={$this->mTitle->getText()}" ) ); |
| 902 | + } else { |
| 903 | + $nav_urls['log'] = false; |
| 904 | + } |
| 905 | + |
900 | 906 | if ( $wgUser->isAllowed( 'block' ) ) { |
901 | 907 | $nav_urls['blockip'] = array( |
902 | 908 | 'href' => self::makeSpecialUrlSubpage( 'Blockip', $this->mTitle->getText() ) |
— | — | @@ -905,6 +911,7 @@ |
906 | 912 | } |
907 | 913 | } else { |
908 | 914 | $nav_urls['contributions'] = false; |
| 915 | + $nav_urls['log'] = false; |
909 | 916 | $nav_urls['blockip'] = false; |
910 | 917 | } |
911 | 918 | $nav_urls['emailuser'] = false; |