r77670 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77669‎ | r77670 | r77671 >
Date:19:18, 3 December 2010
Author:btongminh
Status:ok (Comments)
Tags:
Comment:
Added Special:Myuploads special page that redirects to Special:Listfiles
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPage.php
@@ -191,6 +191,7 @@
192192 'Mycontributions' => 'SpecialMycontributions',
193193 'Mypage' => 'SpecialMypage',
194194 'Mytalk' => 'SpecialMytalk',
 195+ 'Myuploads' => 'SpecialMyuploads',
195196 'Revisiondelete' => 'SpecialRevisionDelete',
196197 'RevisionMove' => 'SpecialRevisionMove',
197198 'Specialpages' => 'SpecialSpecialpages',
@@ -1017,3 +1018,18 @@
10181019 return SpecialPage::getTitleFor( 'Contributions', $wgUser->getName() );
10191020 }
10201021 }
 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 @@
216216 number of the textsize in Byte
217217 * (bug 3276) Give image <gallery>s fluid width
218218 * Added uploads link to page subtitle in Special:Contributions
 219+* Added Special:Myuploads special page that redirects to Special:Listfiles
219220
220221 === Bug fixes in 1.17 ===
221222 * (bug 17560) Half-broken deletion moved image files to deletion archive

Follow-up revisions

RevisionCommit summaryAuthorDate
r77685Follow-up r77670: Add new special page (alias) to messages/MessagesEn.phpraymond22:34, 3 December 2010

Comments

#Comment by Nikerabbit (talk | contribs)   22:34, 3 December 2010

You should add alias entry to $specialPageAliases in MessagesEn.php

#Comment by Bryan (talk | contribs)   22:38, 3 December 2010

Done by Raymond

Status & tagging log