r86282 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86281‎ | r86282 | r86283 >
Date:20:34, 17 April 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Follow-up r86255: rm duplicated config list
Modified paths:
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPage.php
@@ -78,129 +78,7 @@
7979 * @var RequestContext
8080 */
8181 protected $mContext;
82 -
83 - /**
84 - * List of special page names to the subclass of SpecialPage which handles them.
85 - */
86 - static public $mList = array(
87 - # Maintenance Reports
88 - 'BrokenRedirects' => 'BrokenRedirectsPage',
89 - 'Deadendpages' => 'DeadendpagesPage',
90 - 'DoubleRedirects' => 'DoubleRedirectsPage',
91 - 'Longpages' => 'LongpagesPage',
92 - 'Ancientpages' => 'AncientpagesPage',
93 - 'Lonelypages' => 'LonelypagesPage',
94 - 'Fewestrevisions' => 'FewestrevisionsPage',
95 - 'Withoutinterwiki' => 'WithoutinterwikiPage',
96 - 'Protectedpages' => 'SpecialProtectedpages',
97 - 'Protectedtitles' => 'SpecialProtectedtitles',
98 - 'Shortpages' => 'ShortpagesPage',
99 - 'Uncategorizedcategories' => 'UncategorizedcategoriesPage',
100 - 'Uncategorizedimages' => 'UncategorizedimagesPage',
101 - 'Uncategorizedpages' => 'UncategorizedpagesPage',
102 - 'Uncategorizedtemplates' => 'UncategorizedtemplatesPage',
103 - 'Unusedcategories' => 'UnusedcategoriesPage',
104 - 'Unusedimages' => 'UnusedimagesPage',
105 - 'Unusedtemplates' => 'UnusedtemplatesPage',
106 - 'Unwatchedpages' => 'UnwatchedpagesPage',
107 - 'Wantedcategories' => 'WantedcategoriesPage',
108 - 'Wantedfiles' => 'WantedfilesPage',
109 - 'Wantedpages' => 'WantedpagesPage',
110 - 'Wantedtemplates' => 'WantedtemplatesPage',
11182
112 - # List of pages
113 - 'Allpages' => 'SpecialAllpages',
114 - 'Prefixindex' => 'SpecialPrefixindex',
115 - 'Categories' => 'SpecialCategories',
116 - 'Disambiguations' => 'DisambiguationsPage',
117 - 'Listredirects' => 'ListredirectsPage',
118 -
119 - # Login/create account
120 - 'Userlogin' => 'LoginForm',
121 - 'CreateAccount' => 'SpecialCreateAccount',
122 -
123 - # Users and rights
124 - 'Block' => 'SpecialBlock',
125 - 'Unblock' => 'SpecialUnblock',
126 - 'BlockList' => 'SpecialBlockList',
127 - 'Resetpass' => 'SpecialResetpass',
128 - 'DeletedContributions' => 'DeletedContributionsPage',
129 - 'Preferences' => 'SpecialPreferences',
130 - 'Contributions' => 'SpecialContributions',
131 - 'Listgrouprights' => 'SpecialListGroupRights',
132 - 'Listusers' => 'SpecialListUsers' ,
133 - 'Listadmins' => 'SpecialListAdmins',
134 - 'Listbots' => 'SpecialListBots',
135 - 'Activeusers' => 'SpecialActiveUsers',
136 - 'Userrights' => 'UserrightsPage',
137 - 'EditWatchlist' => 'SpecialEditWatchlist',
138 -
139 - # Recent changes and logs
140 - 'Newimages' => 'SpecialNewFiles',
141 - 'Log' => 'SpecialLog',
142 - 'Watchlist' => 'SpecialWatchlist',
143 - 'Newpages' => 'SpecialNewpages',
144 - 'Recentchanges' => 'SpecialRecentchanges',
145 - 'Recentchangeslinked' => 'SpecialRecentchangeslinked',
146 - 'Tags' => 'SpecialTags',
147 -
148 - # Media reports and uploads
149 - 'Listfiles' => 'SpecialListFiles',
150 - 'Filepath' => 'SpecialFilepath',
151 - 'MIMEsearch' => 'MIMEsearchPage',
152 - 'FileDuplicateSearch' => 'FileDuplicateSearchPage',
153 - 'Upload' => 'SpecialUpload',
154 - 'UploadStash' => 'SpecialUploadStash',
155 -
156 - # Wiki data and tools
157 - 'Statistics' => 'SpecialStatistics',
158 - 'Allmessages' => 'SpecialAllmessages',
159 - 'Version' => 'SpecialVersion',
160 - 'Lockdb' => 'SpecialLockdb',
161 - 'Unlockdb' => 'SpecialUnlockdb',
162 -
163 - # Redirecting special pages
164 - 'LinkSearch' => 'LinkSearchPage',
165 - 'Randompage' => 'Randompage',
166 - 'Randomredirect' => 'SpecialRandomredirect',
167 -
168 - # High use pages
169 - 'Mostlinkedcategories' => 'MostlinkedCategoriesPage',
170 - 'Mostimages' => 'MostimagesPage',
171 - 'Mostlinked' => 'MostlinkedPage',
172 - 'Mostlinkedtemplates' => 'MostlinkedTemplatesPage',
173 - 'Mostcategories' => 'MostcategoriesPage',
174 - 'Mostrevisions' => 'MostrevisionsPage',
175 -
176 - # Page tools
177 - 'ComparePages' => 'SpecialComparePages',
178 - 'Export' => 'SpecialExport',
179 - 'Import' => 'SpecialImport',
180 - 'Undelete' => 'SpecialUndelete',
181 - 'Whatlinkshere' => 'SpecialWhatlinkshere',
182 - 'MergeHistory' => 'SpecialMergeHistory',
183 -
184 - # Other
185 - 'Booksources' => 'SpecialBookSources',
186 -
187 - # Unlisted / redirects
188 - 'Blankpage' => 'SpecialBlankpage',
189 - 'Blockme' => 'SpecialBlockme',
190 - 'Emailuser' => 'SpecialEmailUser',
191 - 'Movepage' => 'MovePageForm',
192 - 'Mycontributions' => 'SpecialMycontributions',
193 - 'Mypage' => 'SpecialMypage',
194 - 'Mytalk' => 'SpecialMytalk',
195 - 'Myuploads' => 'SpecialMyuploads',
196 - 'PermanentLink' => 'SpecialPermanentLink',
197 - 'Revisiondelete' => 'SpecialRevisionDelete',
198 - 'Specialpages' => 'SpecialSpecialpages',
199 - 'Userlogout' => 'SpecialUserlogout',
200 - );
201 -
202 - static public $mAliases;
203 - static public $mListInitialised = false;
204 -
20583 /**
20684 * Initialise the special page list
20785 * This must be called before accessing SpecialPage::$mList

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r86255Refactor the factory/i18n/list/etc static methods from SpecialPage into their...happy-melon11:31, 17 April 2011

Status & tagging log