Index: Preferences.php =================================================================== --- Preferences.php (revision 112914) +++ Preferences.php (working copy) @@ -673,6 +673,13 @@ 'section' => 'rendering/advancedrendering', 'label-message' => 'tog-numberheadings', ); + + $defaultPreferences['showmyuploads'] = array( + 'type' => 'toggle', + 'section' => 'rendering/advancedrendering', + 'label-message' => 'tog-showmyuploads', + ); + } /** Index: ../languages/messages/MessagesEn.php =================================================================== --- ../languages/messages/MessagesEn.php (revision 112914) +++ ../languages/messages/MessagesEn.php (working copy) @@ -673,7 +673,9 @@ 'tog-showhiddencats' => 'Show hidden categories', 'tog-noconvertlink' => 'Disable link title conversion', # only translate this message to other languages if you have to change it 'tog-norollbackdiff' => 'Omit diff after performing a rollback', +'tog-showmyuploads' => 'Show my uploads', + 'underline-always' => 'Always', 'underline-never' => 'Never', 'underline-default' => 'Browser default', @@ -767,6 +769,7 @@ 'mypage' => 'My page', 'mytalk' => 'My talk', 'anontalk' => 'Talk for this IP address', +'myuploads' => 'My Uploads', 'navigation' => 'Navigation', 'and' => ' and', @@ -3516,6 +3519,7 @@ 'tooltip-pt-preferences' => 'Your preferences', 'tooltip-pt-watchlist' => 'A list of pages you are monitoring for changes', 'tooltip-pt-mycontris' => 'A list of your contributions', +'tooltip-pt-myuploads' => 'A list of files uploaded by you', 'tooltip-pt-login' => 'You are encouraged to log in; however, it is not mandatory', 'tooltip-pt-anonlogin' => 'You are encouraged to log in; however, it is not mandatory', 'tooltip-pt-logout' => 'Log out', Index: ../maintenance/language/messages.inc =================================================================== --- ../maintenance/language/messages.inc (revision 112914) +++ ../maintenance/language/messages.inc (working copy) @@ -170,6 +170,7 @@ 'mypage', 'mytalk', 'anontalk', + 'myuploads', 'navigation', 'and', ), @@ -2464,6 +2465,7 @@ 'tooltip-pt-preferences', 'tooltip-pt-watchlist', 'tooltip-pt-mycontris', + 'tooltip-pt-myuploads', 'tooltip-pt-login', 'tooltip-pt-anonlogin', 'tooltip-pt-logout', Index: SkinTemplate.php =================================================================== --- SkinTemplate.php (revision 113838) +++ SkinTemplate.php (working copy) @@ -595,6 +595,27 @@ 'href' => $href, 'active' => $active ); + + + if( $this->getUser()->getOption( 'showmyuploads' ) == 1 ){ + $origTitle = Title::newFromText( $wgRequest->getText( 'title' ) ); + if( $origTitle instanceof Title && $origTitle->getNamespace() == NS_SPECIAL ) { + list( $spName, $spPar ) = SpecialPageFactory::resolveAlias( $origTitle->getText() ); + $active = $spName == 'My Uploads' + && ( ( $spPar && $spPar == $this->username ) + || $wgRequest->getText( 'target' ) == $this->username ); + } else { + $active = false; + } + + $href = self::makeSpecialUrlSubpage( 'ListFiles', $this->username ); + $personal_urls['myuploads'] = array( + 'text' => wfMsg( 'myuploads' ), + 'href' => $href, + 'active' => $active + ); + } + $personal_urls['logout'] = array( 'text' => $this->msg( 'userlogout' )->text(), 'href' => self::makeSpecialUrl( 'Userlogout', Index: /home/logic/code/phase3/includes/DefaultSettings.php =================================================================== --- /home/logic/code/phase3/includes/DefaultSettings.php (revision 112914) +++ /home/logic/code/phase3/includes/DefaultSettings.php (working copy) @@ -3233,6 +3233,7 @@ 'hidepatrolled' => 0, 'imagesize' => 2, 'justify' => 0, + 'showuploads' => 1, 'math' => 1, 'minordefault' => 0, 'newpageshidepatrolled' => 0,