Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -78,129 +78,7 @@ |
79 | 79 | * @var RequestContext |
80 | 80 | */ |
81 | 81 | 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', |
111 | 82 | |
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 | | - |
205 | 83 | /** |
206 | 84 | * Initialise the special page list |
207 | 85 | * This must be called before accessing SpecialPage::$mList |