Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -191,6 +191,7 @@ |
192 | 192 | 'Mycontributions' => 'SpecialMycontributions', |
193 | 193 | 'Mypage' => 'SpecialMypage', |
194 | 194 | 'Mytalk' => 'SpecialMytalk', |
| 195 | + 'Myuploads' => 'SpecialMyuploads', |
195 | 196 | 'Revisiondelete' => 'SpecialRevisionDelete', |
196 | 197 | 'RevisionMove' => 'SpecialRevisionMove', |
197 | 198 | 'Specialpages' => 'SpecialSpecialpages', |
— | — | @@ -1017,3 +1018,18 @@ |
1018 | 1019 | return SpecialPage::getTitleFor( 'Contributions', $wgUser->getName() ); |
1019 | 1020 | } |
1020 | 1021 | } |
| 1022 | + |
| 1023 | +/** |
| 1024 | + * Redirect to Special:Listfiles?user=$wgUser |
| 1025 | + */ |
| 1026 | +class SpecialMyuploads extends UnlistedSpecialPage { |
| 1027 | + function __construct() { |
| 1028 | + parent::__construct( 'Myuploads' ); |
| 1029 | + $this->mAllowedRedirectParams = array( 'limit' ); |
| 1030 | + } |
| 1031 | + |
| 1032 | + function getRedirect( $subpage ) { |
| 1033 | + global $wgUser; |
| 1034 | + return SpecialPage::getTitleFor( 'Listfiles', $wgUser->getName() ); |
| 1035 | + } |
| 1036 | +} |
\ No newline at end of file |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -215,6 +215,7 @@ |
216 | 216 | number of the textsize in Byte |
217 | 217 | * (bug 3276) Give image <gallery>s fluid width |
218 | 218 | * Added uploads link to page subtitle in Special:Contributions |
| 219 | +* Added Special:Myuploads special page that redirects to Special:Listfiles |
219 | 220 | |
220 | 221 | === Bug fixes in 1.17 === |
221 | 222 | * (bug 17560) Half-broken deletion moved image files to deletion archive |