Localisation updates for extension messages from Betawiki (2008-07-11 11:00 CEST)
[lhc/web/wiklou.git] / includes / AutoLoader.php
1 <?php
2
3 /* This defines autoloading handler for whole MediaWiki framework */
4
5 ini_set('unserialize_callback_func', '__autoload' );
6
7 class AutoLoader {
8 # Locations of core classes
9 # Extension classes are specified with $wgAutoloadClasses
10 static $localClasses = array(
11 # Includes
12 'AjaxDispatcher' => 'includes/AjaxDispatcher.php',
13 'AjaxResponse' => 'includes/AjaxResponse.php',
14 'AlphabeticPager' => 'includes/Pager.php',
15 'APCBagOStuff' => 'includes/BagOStuff.php',
16 'ArrayDiffFormatter' => 'includes/DifferenceEngine.php',
17 'Article' => 'includes/Article.php',
18 'AtomFeed' => 'includes/Feed.php',
19 'AuthPlugin' => 'includes/AuthPlugin.php',
20 'Autopromote' => 'includes/Autopromote.php',
21 'BagOStuff' => 'includes/BagOStuff.php',
22 'Block' => 'includes/Block.php',
23 'CacheDependency' => 'includes/CacheDependency.php',
24 'Category' => 'includes/Category.php',
25 'Categoryfinder' => 'includes/Categoryfinder.php',
26 'CategoryPage' => 'includes/CategoryPage.php',
27 'CategoryViewer' => 'includes/CategoryPage.php',
28 'ChangesList' => 'includes/ChangesList.php',
29 'ChangesFeed' => 'includes/ChangesFeed.php',
30 'ChannelFeed' => 'includes/Feed.php',
31 'ConcatenatedGzipHistoryBlob' => 'includes/HistoryBlob.php',
32 'ConstantDependency' => 'includes/CacheDependency.php',
33 'DBABagOStuff' => 'includes/BagOStuff.php',
34 'DependencyWrapper' => 'includes/CacheDependency.php',
35 '_DiffEngine' => 'includes/DifferenceEngine.php',
36 'DifferenceEngine' => 'includes/DifferenceEngine.php',
37 'DiffFormatter' => 'includes/DifferenceEngine.php',
38 'Diff' => 'includes/DifferenceEngine.php',
39 '_DiffOp_Add' => 'includes/DifferenceEngine.php',
40 '_DiffOp_Change' => 'includes/DifferenceEngine.php',
41 '_DiffOp_Copy' => 'includes/DifferenceEngine.php',
42 '_DiffOp_Delete' => 'includes/DifferenceEngine.php',
43 '_DiffOp' => 'includes/DifferenceEngine.php',
44 'DjVuImage' => 'includes/DjVuImage.php',
45 'DoubleReplacer' => 'includes/StringUtils.php',
46 'Dump7ZipOutput' => 'includes/Export.php',
47 'DumpBZip2Output' => 'includes/Export.php',
48 'DumpFileOutput' => 'includes/Export.php',
49 'DumpFilter' => 'includes/Export.php',
50 'DumpGZipOutput' => 'includes/Export.php',
51 'DumpLatestFilter' => 'includes/Export.php',
52 'DumpMultiWriter' => 'includes/Export.php',
53 'DumpNamespaceFilter' => 'includes/Export.php',
54 'DumpNotalkFilter' => 'includes/Export.php',
55 'DumpOutput' => 'includes/Export.php',
56 'DumpPipeOutput' => 'includes/Export.php',
57 'eAccelBagOStuff' => 'includes/BagOStuff.php',
58 'EditPage' => 'includes/EditPage.php',
59 'EmaillingJob' => 'includes/EmaillingJob.php',
60 'EmailNotification' => 'includes/UserMailer.php',
61 'EnhancedChangesList' => 'includes/ChangesList.php',
62 'EnotifNotifyJob' => 'includes/EnotifNotifyJob.php',
63 'ErrorPageError' => 'includes/Exception.php',
64 'Exif' => 'includes/Exif.php',
65 'ExternalEdit' => 'includes/ExternalEdit.php',
66 'ExternalStoreDB' => 'includes/ExternalStoreDB.php',
67 'ExternalStoreHttp' => 'includes/ExternalStoreHttp.php',
68 'ExternalStore' => 'includes/ExternalStore.php',
69 'FatalError' => 'includes/Exception.php',
70 'FakeTitle' => 'includes/FakeTitle.php',
71 'FauxRequest' => 'includes/WebRequest.php',
72 'FeedItem' => 'includes/Feed.php',
73 'FeedUtils' => 'includes/FeedUtils.php',
74 'FileDeleteForm' => 'includes/FileDeleteForm.php',
75 'FileDependency' => 'includes/CacheDependency.php',
76 'FileRevertForm' => 'includes/FileRevertForm.php',
77 'FileStore' => 'includes/FileStore.php',
78 'FormatExif' => 'includes/Exif.php',
79 'FormOptions' => 'includes/FormOptions.php',
80 'FSException' => 'includes/FileStore.php',
81 'FSTransaction' => 'includes/FileStore.php',
82 'GlobalDependency' => 'includes/CacheDependency.php',
83 'HashBagOStuff' => 'includes/BagOStuff.php',
84 'HashtableReplacer' => 'includes/StringUtils.php',
85 'HistoryBlobCurStub' => 'includes/HistoryBlob.php',
86 'HistoryBlob' => 'includes/HistoryBlob.php',
87 'HistoryBlobStub' => 'includes/HistoryBlob.php',
88 'HTMLCacheUpdate' => 'includes/HTMLCacheUpdate.php',
89 'HTMLCacheUpdateJob' => 'includes/HTMLCacheUpdate.php',
90 'HTMLFileCache' => 'includes/HTMLFileCache.php',
91 'Http' => 'includes/HttpFunctions.php',
92 '_HWLDF_WordAccumulator' => 'includes/DifferenceEngine.php',
93 'ImageGallery' => 'includes/ImageGallery.php',
94 'ImageHistoryList' => 'includes/ImagePage.php',
95 'ImagePage' => 'includes/ImagePage.php',
96 'ImageQueryPage' => 'includes/ImageQueryPage.php',
97 'IncludableSpecialPage' => 'includes/SpecialPage.php',
98 'IndexPager' => 'includes/Pager.php',
99 'IP' => 'includes/IP.php',
100 'Job' => 'includes/JobQueue.php',
101 'License' => 'includes/Licenses.php',
102 'Licenses' => 'includes/Licenses.php',
103 'LinkBatch' => 'includes/LinkBatch.php',
104 'LinkCache' => 'includes/LinkCache.php',
105 'Linker' => 'includes/Linker.php',
106 'LinkFilter' => 'includes/LinkFilter.php',
107 'LinksUpdate' => 'includes/LinksUpdate.php',
108 'LogPage' => 'includes/LogPage.php',
109 'LogPager' => 'includes/LogEventsList.php',
110 'LogEventsList' => 'includes/LogEventsList.php',
111 'LogReader' => 'includes/LogEventsList.php',
112 'LogViewer' => 'includes/LogEventsList.php',
113 'MacBinary' => 'includes/MacBinary.php',
114 'MagicWordArray' => 'includes/MagicWord.php',
115 'MagicWord' => 'includes/MagicWord.php',
116 'MailAddress' => 'includes/UserMailer.php',
117 'MappedDiff' => 'includes/DifferenceEngine.php',
118 'MathRenderer' => 'includes/Math.php',
119 'MediaTransformError' => 'includes/MediaTransformOutput.php',
120 'MediaTransformOutput' => 'includes/MediaTransformOutput.php',
121 'MediaWikiBagOStuff' => 'includes/BagOStuff.php',
122 'MediaWiki_I18N' => 'includes/SkinTemplate.php',
123 'MediaWiki' => 'includes/Wiki.php',
124 'memcached' => 'includes/memcached-client.php',
125 'MessageCache' => 'includes/MessageCache.php',
126 'MimeMagic' => 'includes/MimeMagic.php',
127 'MWException' => 'includes/Exception.php',
128 'MWNamespace' => 'includes/Namespace.php',
129 'MySQLSearchResultSet' => 'includes/SearchMySQL.php',
130 'Namespace' => 'includes/NamespaceCompat.php', // Compat
131 'OldChangesList' => 'includes/ChangesList.php',
132 'OracleSearchResultSet' => 'includes/SearchOracle.php',
133 'OutputPage' => 'includes/OutputPage.php',
134 'PageHistory' => 'includes/PageHistory.php',
135 'PageHistoryPager' => 'includes/PageHistory.php',
136 'PageQueryPage' => 'includes/PageQueryPage.php',
137 'Pager' => 'includes/Pager.php',
138 'PasswordError' => 'includes/User.php',
139 'PatrolLog' => 'includes/PatrolLog.php',
140 'PostgresSearchResult' => 'includes/SearchPostgres.php',
141 'PostgresSearchResultSet' => 'includes/SearchPostgres.php',
142 'PrefixSearch' => 'includes/PrefixSearch.php',
143 'Profiler' => 'includes/Profiler.php',
144 'ProfilerSimple' => 'includes/ProfilerSimple.php',
145 'ProfilerSimpleText' => 'includes/ProfilerSimpleText.php',
146 'ProfilerSimpleUDP' => 'includes/ProfilerSimpleUDP.php',
147 'ProtectionForm' => 'includes/ProtectionForm.php',
148 'QueryPage' => 'includes/QueryPage.php',
149 'QuickTemplate' => 'includes/SkinTemplate.php',
150 'RawPage' => 'includes/RawPage.php',
151 'RCCacheEntry' => 'includes/ChangesList.php',
152 'RecentChange' => 'includes/RecentChange.php',
153 'RefreshLinksJob' => 'includes/RefreshLinksJob.php',
154 'RegexlikeReplacer' => 'includes/StringUtils.php',
155 'ReplacementArray' => 'includes/StringUtils.php',
156 'Replacer' => 'includes/StringUtils.php',
157 'ReverseChronologicalPager' => 'includes/Pager.php',
158 'Revision' => 'includes/Revision.php',
159 'RSSFeed' => 'includes/Feed.php',
160 'Sanitizer' => 'includes/Sanitizer.php',
161 'SearchEngineDummy' => 'includes/SearchEngine.php',
162 'SearchEngine' => 'includes/SearchEngine.php',
163 'SearchHighlighter' => 'includes/SearchEngine.php',
164 'SearchMySQL4' => 'includes/SearchMySQL4.php',
165 'SearchMySQL' => 'includes/SearchMySQL.php',
166 'SearchOracle' => 'includes/SearchOracle.php',
167 'SearchPostgres' => 'includes/SearchPostgres.php',
168 'SearchResult' => 'includes/SearchEngine.php',
169 'SearchResultSet' => 'includes/SearchEngine.php',
170 'SearchResultTooMany' => 'includes/SearchEngine.php',
171 'SearchUpdate' => 'includes/SearchUpdate.php',
172 'SearchUpdateMyISAM' => 'includes/SearchUpdate.php',
173 'SiteConfiguration' => 'includes/SiteConfiguration.php',
174 'SiteStats' => 'includes/SiteStats.php',
175 'SiteStatsUpdate' => 'includes/SiteStats.php',
176 'Skin' => 'includes/Skin.php',
177 'SkinTemplate' => 'includes/SkinTemplate.php',
178 'SpecialMycontributions' => 'includes/SpecialPage.php',
179 'SpecialMypage' => 'includes/SpecialPage.php',
180 'SpecialMytalk' => 'includes/SpecialPage.php',
181 'SpecialPage' => 'includes/SpecialPage.php',
182 'SpecialRedirectToSpecial' => 'includes/SpecialPage.php',
183 'SqlBagOStuff' => 'includes/BagOStuff.php',
184 'SquidUpdate' => 'includes/SquidUpdate.php',
185 'Status' => 'includes/Status.php',
186 'StringUtils' => 'includes/StringUtils.php',
187 'TableDiffFormatter' => 'includes/DifferenceEngine.php',
188 'TablePager' => 'includes/Pager.php',
189 'ThumbnailImage' => 'includes/MediaTransformOutput.php',
190 'TitleDependency' => 'includes/CacheDependency.php',
191 'Title' => 'includes/Title.php',
192 'TitleListDependency' => 'includes/CacheDependency.php',
193 'TransformParameterError' => 'includes/MediaTransformOutput.php',
194 'TurckBagOStuff' => 'includes/BagOStuff.php',
195 'UnifiedDiffFormatter' => 'includes/DifferenceEngine.php',
196 'UnlistedSpecialPage' => 'includes/SpecialPage.php',
197 'User' => 'includes/User.php',
198 'UserArray' => 'includes/UserArray.php',
199 'UserArrayFromResult' => 'includes/UserArray.php',
200 'UserMailer' => 'includes/UserMailer.php',
201 'UserRightsProxy' => 'includes/UserRightsProxy.php',
202 'WatchedItem' => 'includes/WatchedItem.php',
203 'WatchlistEditor' => 'includes/WatchlistEditor.php',
204 'WebRequest' => 'includes/WebRequest.php',
205 'WebResponse' => 'includes/WebResponse.php',
206 'WikiError' => 'includes/WikiError.php',
207 'WikiErrorMsg' => 'includes/WikiError.php',
208 'WikiExporter' => 'includes/Export.php',
209 'WikiXmlError' => 'includes/WikiError.php',
210 'WordLevelDiff' => 'includes/DifferenceEngine.php',
211 'XCacheBagOStuff' => 'includes/BagOStuff.php',
212 'XmlDumpWriter' => 'includes/Export.php',
213 'Xml' => 'includes/Xml.php',
214 'XmlSelect' => 'includes/Xml.php',
215 'XmlTypeCheck' => 'includes/XmlTypeCheck.php',
216 'ZhClient' => 'includes/ZhClient.php',
217
218 # includes/api
219 'ApiBase' => 'includes/api/ApiBase.php',
220 'ApiBlock' => 'includes/api/ApiBlock.php',
221 'ApiDelete' => 'includes/api/ApiDelete.php',
222 'ApiEditPage' => 'includes/api/ApiEditPage.php',
223 'ApiEmailUser' => 'includes/api/ApiEmailUser.php',
224 'ApiExpandTemplates' => 'includes/api/ApiExpandTemplates.php',
225 'ApiFeedWatchlist' => 'includes/api/ApiFeedWatchlist.php',
226 'ApiFormatBase' => 'includes/api/ApiFormatBase.php',
227 'ApiFormatDbg' => 'includes/api/ApiFormatDbg.php',
228 'ApiFormatFeedWrapper' => 'includes/api/ApiFormatBase.php',
229 'ApiFormatJson' => 'includes/api/ApiFormatJson.php',
230 'ApiFormatPhp' => 'includes/api/ApiFormatPhp.php',
231 'ApiFormatTxt' => 'includes/api/ApiFormatTxt.php',
232 'ApiFormatWddx' => 'includes/api/ApiFormatWddx.php',
233 'ApiFormatXml' => 'includes/api/ApiFormatXml.php',
234 'ApiFormatYaml' => 'includes/api/ApiFormatYaml.php',
235 'ApiHelp' => 'includes/api/ApiHelp.php',
236 'ApiLogin' => 'includes/api/ApiLogin.php',
237 'ApiLogout' => 'includes/api/ApiLogout.php',
238 'ApiMain' => 'includes/api/ApiMain.php',
239 'ApiMove' => 'includes/api/ApiMove.php',
240 'ApiOpenSearch' => 'includes/api/ApiOpenSearch.php',
241 'ApiPageSet' => 'includes/api/ApiPageSet.php',
242 'ApiParamInfo' => 'includes/api/ApiParamInfo.php',
243 'ApiParse' => 'includes/api/ApiParse.php',
244 'ApiProtect' => 'includes/api/ApiProtect.php',
245 'ApiQuery' => 'includes/api/ApiQuery.php',
246 'ApiQueryAllCategories' => 'includes/api/ApiQueryAllCategories.php',
247 'ApiQueryAllimages' => 'includes/api/ApiQueryAllimages.php',
248 'ApiQueryAllLinks' => 'includes/api/ApiQueryAllLinks.php',
249 'ApiQueryAllUsers' => 'includes/api/ApiQueryAllUsers.php',
250 'ApiQueryAllmessages' => 'includes/api/ApiQueryAllmessages.php',
251 'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php',
252 'ApiQueryBacklinks' => 'includes/api/ApiQueryBacklinks.php',
253 'ApiQueryBase' => 'includes/api/ApiQueryBase.php',
254 'ApiQueryBlocks' => 'includes/api/ApiQueryBlocks.php',
255 'ApiQueryCategories' => 'includes/api/ApiQueryCategories.php',
256 'ApiQueryCategoryInfo' => 'includes/api/ApiQueryCategoryInfo.php',
257 'ApiQueryCategoryMembers' => 'includes/api/ApiQueryCategoryMembers.php',
258 'ApiQueryContributions' => 'includes/api/ApiQueryUserContributions.php',
259 'ApiQueryDeletedrevs' => 'includes/api/ApiQueryDeletedrevs.php',
260 'ApiQueryExtLinksUsage' => 'includes/api/ApiQueryExtLinksUsage.php',
261 'ApiQueryExternalLinks' => 'includes/api/ApiQueryExternalLinks.php',
262 'ApiQueryGeneratorBase' => 'includes/api/ApiQueryBase.php',
263 'ApiQueryImageInfo' => 'includes/api/ApiQueryImageInfo.php',
264 'ApiQueryImages' => 'includes/api/ApiQueryImages.php',
265 'ApiQueryInfo' => 'includes/api/ApiQueryInfo.php',
266 'ApiQueryLangLinks' => 'includes/api/ApiQueryLangLinks.php',
267 'ApiQueryLinks' => 'includes/api/ApiQueryLinks.php',
268 'ApiQueryLogEvents' => 'includes/api/ApiQueryLogEvents.php',
269 'ApiQueryRandom' => 'includes/api/ApiQueryRandom.php',
270 'ApiQueryRecentChanges'=> 'includes/api/ApiQueryRecentChanges.php',
271 'ApiQueryRevisions' => 'includes/api/ApiQueryRevisions.php',
272 'ApiQuerySearch' => 'includes/api/ApiQuerySearch.php',
273 'ApiQuerySiteinfo' => 'includes/api/ApiQuerySiteinfo.php',
274 'ApiQueryUserInfo' => 'includes/api/ApiQueryUserInfo.php',
275 'ApiQueryUsers' => 'includes/api/ApiQueryUsers.php',
276 'ApiQueryWatchlist' => 'includes/api/ApiQueryWatchlist.php',
277 'ApiResult' => 'includes/api/ApiResult.php',
278 'ApiRollback' => 'includes/api/ApiRollback.php',
279 'ApiUnblock' => 'includes/api/ApiUnblock.php',
280 'ApiUndelete' => 'includes/api/ApiUndelete.php',
281 'Services_JSON' => 'includes/api/ApiFormatJson_json.php',
282 'Services_JSON_Error' => 'includes/api/ApiFormatJson_json.php',
283 'Spyc' => 'includes/api/ApiFormatYaml_spyc.php',
284 'UsageException' => 'includes/api/ApiMain.php',
285 'YAMLNode' => 'includes/api/ApiFormatYaml_spyc.php',
286
287 # includes/db
288 'Blob' => 'includes/db/Database.php',
289 'ChronologyProtector' => 'includes/db/LBFactory.php',
290 'Database' => 'includes/db/Database.php',
291 'DatabaseMssql' => 'includes/db/DatabaseMssql.php',
292 'DatabaseMysql' => 'includes/db/Database.php',
293 'DatabaseOracle' => 'includes/db/DatabaseOracle.php',
294 'DatabasePostgres' => 'includes/db/DatabasePostgres.php',
295 'DatabaseSqlite' => 'includes/db/DatabaseSqlite.php',
296 'DBConnectionError' => 'includes/db/Database.php',
297 'DBError' => 'includes/db/Database.php',
298 'DBObject' => 'includes/db/Database.php',
299 'DBQueryError' => 'includes/db/Database.php',
300 'DBUnexpectedError' => 'includes/db/Database.php',
301 'LBFactory' => 'includes/db/LBFactory.php',
302 'LBFactory_Multi' => 'includes/db/LBFactory_Multi.php',
303 'LBFactory_Simple' => 'includes/db/LBFactory.php',
304 'LoadBalancer' => 'includes/db/LoadBalancer.php',
305 'LoadMonitor' => 'includes/db/LoadMonitor.php',
306 'LoadMonitor_MySQL' => 'includes/db/LoadMonitor.php',
307 'MSSQLField' => 'includes/db/DatabaseMssql.php',
308 'MySQLField' => 'includes/db/Database.php',
309 'MySQLMasterPos' => 'includes/db/Database.php',
310 'ORABlob' => 'includes/db/DatabaseOracle.php',
311 'ORAResult' => 'includes/db/DatabaseOracle.php',
312 'PostgresField' => 'includes/db/DatabasePostgres.php',
313 'ResultWrapper' => 'includes/db/Database.php',
314 'SQLiteField' => 'includes/db/DatabaseSqlite.php',
315
316 # includes/filerepo
317 'ArchivedFile' => 'includes/filerepo/ArchivedFile.php',
318 'File' => 'includes/filerepo/File.php',
319 'FileRepo' => 'includes/filerepo/FileRepo.php',
320 'FileRepoStatus' => 'includes/filerepo/FileRepoStatus.php',
321 'ForeignAPIFile' => 'includes/filerepo/ForeignAPIFile.php',
322 'ForeignAPIRepo' => 'includes/filerepo/ForeignAPIRepo.php',
323 'ForeignDBFile' => 'includes/filerepo/ForeignDBFile.php',
324 'ForeignDBRepo' => 'includes/filerepo/ForeignDBRepo.php',
325 'ForeignDBViaLBRepo' => 'includes/filerepo/ForeignDBViaLBRepo.php',
326 'FSRepo' => 'includes/filerepo/FSRepo.php',
327 'Image' => 'includes/filerepo/Image.php',
328 'LocalFile' => 'includes/filerepo/LocalFile.php',
329 'LocalFileDeleteBatch' => 'includes/filerepo/LocalFile.php',
330 'LocalFileMoveBatch' => 'includes/filerepo/LocalFile.php',
331 'LocalFileRestoreBatch' => 'includes/filerepo/LocalFile.php',
332 'LocalRepo' => 'includes/filerepo/LocalRepo.php',
333 'OldLocalFile' => 'includes/filerepo/OldLocalFile.php',
334 'RepoGroup' => 'includes/filerepo/RepoGroup.php',
335 'UnregisteredLocalFile' => 'includes/filerepo/UnregisteredLocalFile.php',
336
337 # includes/media
338 'BitmapHandler' => 'includes/media/Bitmap.php',
339 'BmpHandler' => 'includes/media/BMP.php',
340 'DjVuHandler' => 'includes/media/DjVu.php',
341 'ImageHandler' => 'includes/media/Generic.php',
342 'MediaHandler' => 'includes/media/Generic.php',
343 'SvgHandler' => 'includes/media/SVG.php',
344
345 # includes/normal
346 'UtfNormal' => 'includes/normal/UtfNormal.php',
347
348 # includes/parser
349 'CoreParserFunctions' => 'includes/parser/CoreParserFunctions.php',
350 'DateFormatter' => 'includes/parser/DateFormatter.php',
351 'OnlyIncludeReplacer' => 'includes/parser/Parser.php',
352 'PPDAccum_Hash' => 'includes/parser/Preprocessor_Hash.php',
353 'PPDPart' => 'includes/parser/Preprocessor_DOM.php',
354 'PPDPart_Hash' => 'includes/parser/Preprocessor_Hash.php',
355 'PPDStack' => 'includes/parser/Preprocessor_DOM.php',
356 'PPDStackElement' => 'includes/parser/Preprocessor_DOM.php',
357 'PPDStackElement_Hash' => 'includes/parser/Preprocessor_Hash.php',
358 'PPDStack_Hash' => 'includes/parser/Preprocessor_Hash.php',
359 'PPFrame' => 'includes/parser/Preprocessor.php',
360 'PPFrame_DOM' => 'includes/parser/Preprocessor_DOM.php',
361 'PPFrame_Hash' => 'includes/parser/Preprocessor_Hash.php',
362 'PPNode' => 'includes/parser/Preprocessor.php',
363 'PPNode_DOM' => 'includes/parser/Preprocessor_DOM.php',
364 'PPNode_Hash_Array' => 'includes/parser/Preprocessor_Hash.php',
365 'PPNode_Hash_Attr' => 'includes/parser/Preprocessor_Hash.php',
366 'PPNode_Hash_Text' => 'includes/parser/Preprocessor_Hash.php',
367 'PPNode_Hash_Tree' => 'includes/parser/Preprocessor_Hash.php',
368 'PPTemplateFrame_DOM' => 'includes/parser/Preprocessor_DOM.php',
369 'PPTemplateFrame_Hash' => 'includes/parser/Preprocessor_Hash.php',
370 'Parser' => 'includes/parser/Parser.php',
371 'ParserCache' => 'includes/parser/ParserCache.php',
372 'ParserOptions' => 'includes/parser/ParserOptions.php',
373 'ParserOutput' => 'includes/parser/ParserOutput.php',
374 'Parser_DiffTest' => 'includes/parser/Parser_DiffTest.php',
375 'Parser_OldPP' => 'includes/parser/Parser_OldPP.php',
376 'Preprocessor' => 'includes/parser/Preprocessor.php',
377 'Preprocessor_DOM' => 'includes/parser/Preprocessor_DOM.php',
378 'Preprocessor_Hash' => 'includes/parser/Preprocessor_Hash.php',
379 'StripState' => 'includes/parser/Parser.php',
380
381 # includes/specials
382 'AncientPagesPage' => 'includes/specials/SpecialAncientpages.php',
383 'BrokenRedirectsPage' => 'includes/specials/SpecialBrokenRedirects.php',
384 'ContribsPager' => 'includes/specials/SpecialContributions.php',
385 'DBLockForm' => 'includes/specials/SpecialLockdb.php',
386 'DBUnlockForm' => 'includes/specials/SpecialUnlockdb.php',
387 'DeadendPagesPage' => 'includes/specials/SpecialDeadendpages.php',
388 'DisambiguationsPage' => 'includes/specials/SpecialDisambiguations.php',
389 'DoubleRedirectsPage' => 'includes/specials/SpecialDoubleRedirects.php',
390 'EmailConfirmation' => 'includes/specials/SpecialConfirmemail.php',
391 'EmailInvalidation' => 'includes/specials/SpecialConfirmemail.php',
392 'EmailUserForm' => 'includes/specials/SpecialEmailuser.php',
393 'FewestrevisionsPage' => 'includes/specials/SpecialFewestrevisions.php',
394 'FileDuplicateSearchPage' => 'includes/specials/SpecialFileDuplicateSearch.php',
395 'IPBlockForm' => 'includes/specials/SpecialBlockip.php',
396 'IPBlocklistPager' => 'includes/specials/SpecialIpblocklist.php',
397 'IPUnblockForm' => 'includes/specials/SpecialIpblocklist.php',
398 'ImportReporter' => 'includes/specials/SpecialImport.php',
399 'ImportStreamSource' => 'includes/specials/SpecialImport.php',
400 'ImportStringSource' => 'includes/specials/SpecialImport.php',
401 'ListredirectsPage' => 'includes/specials/SpecialListredirects.php',
402 'LoginForm' => 'includes/specials/SpecialUserlogin.php',
403 'LonelyPagesPage' => 'includes/specials/SpecialLonelypages.php',
404 'LongPagesPage' => 'includes/specials/SpecialLongpages.php',
405 'MIMEsearchPage' => 'includes/specials/SpecialMIMEsearch.php',
406 'MostcategoriesPage' => 'includes/specials/SpecialMostcategories.php',
407 'MostimagesPage' => 'includes/specials/SpecialMostimages.php',
408 'MostlinkedCategoriesPage' => 'includes/specials/SpecialMostlinkedcategories.php',
409 'MostlinkedPage' => 'includes/specials/SpecialMostlinked.php',
410 'MostrevisionsPage' => 'includes/specials/SpecialMostrevisions.php',
411 'MovePageForm' => 'includes/specials/SpecialMovepage.php',
412 'SpecialNewpages' => 'includes/specials/SpecialNewpages.php',
413 'NewPagesPager' => 'includes/specials/SpecialNewpages.php',
414 'PageArchive' => 'includes/specials/SpecialUndelete.php',
415 'PasswordResetForm' => 'includes/specials/SpecialResetpass.php',
416 'PopularPagesPage' => 'includes/specials/SpecialPopularpages.php',
417 'PreferencesForm' => 'includes/specials/SpecialPreferences.php',
418 'RandomPage' => 'includes/specials/SpecialRandompage.php',
419 'RevisionDeleteForm' => 'includes/specials/SpecialRevisiondelete.php',
420 'RevisionDeleter' => 'includes/specials/SpecialRevisiondelete.php',
421 'ShortPagesPage' => 'includes/specials/SpecialShortpages.php',
422 'SpecialAllpages' => 'includes/specials/SpecialAllpages.php',
423 'SpecialBookSources' => 'includes/specials/SpecialBooksources.php',
424 'SpecialListGroupRights' => 'includes/specials/SpecialListgrouprights.php',
425 'SpecialMostlinkedtemplates' => 'includes/specials/SpecialMostlinkedtemplates.php',
426 'SpecialPrefixindex' => 'includes/specials/SpecialPrefixindex.php',
427 'SpecialRandomredirect' => 'includes/specials/SpecialRandomredirect.php',
428 'SpecialRecentchanges' => 'includes/specials/SpecialRecentchanges.php',
429 'SpecialRecentchangeslinked' => 'includes/specials/SpecialRecentchangeslinked.php',
430 'SpecialSearch' => 'includes/specials/SpecialSearch.php',
431 'SpecialVersion' => 'includes/specials/SpecialVersion.php',
432 'UncategorizedCategoriesPage' => 'includes/specials/SpecialUncategorizedcategories.php',
433 'UncategorizedPagesPage' => 'includes/specials/SpecialUncategorizedpages.php',
434 'UncategorizedTemplatesPage' => 'includes/specials/SpecialUncategorizedtemplates.php',
435 'UndeleteForm' => 'includes/specials/SpecialUndelete.php',
436 'UnusedCategoriesPage' => 'includes/specials/SpecialUnusedcategories.php',
437 'UnusedimagesPage' => 'includes/specials/SpecialUnusedimages.php',
438 'UnusedtemplatesPage' => 'includes/specials/SpecialUnusedtemplates.php',
439 'UnwatchedpagesPage' => 'includes/specials/SpecialUnwatchedpages.php',
440 'UploadForm' => 'includes/specials/SpecialUpload.php',
441 'UploadFormMogile' => 'includes/specials/SpecialUploadMogile.php',
442 'UserrightsPage' => 'includes/specials/SpecialUserrights.php',
443 'UsersPager' => 'includes/specials/SpecialListusers.php',
444 'WantedCategoriesPage' => 'includes/specials/SpecialWantedcategories.php',
445 'WantedPagesPage' => 'includes/specials/SpecialWantedpages.php',
446 'WhatLinksHerePage' => 'includes/specials/SpecialWhatlinkshere.php',
447 'WikiImporter' => 'includes/specials/SpecialImport.php',
448 'WikiRevision' => 'includes/specials/SpecialImport.php',
449 'WithoutInterwikiPage' => 'includes/specials/SpecialWithoutinterwiki.php',
450
451 # includes/templates
452 'UsercreateTemplate' => 'includes/templates/Userlogin.php',
453 'UserloginTemplate' => 'includes/templates/Userlogin.php',
454
455 # languages
456 'Language' => 'languages/Language.php',
457 'FakeConverter' => 'languages/Language.php',
458
459 # maintenance/language
460 'statsOutput' => 'maintenance/language/StatOutputs.php',
461 'wikiStatsOutput' => 'maintenance/language/StatOutputs.php',
462 'metawikiStatsOutput' => 'maintenance/language/StatOutputs.php',
463 'textStatsOutput' => 'maintenance/language/StatOutputs.php',
464 'csvStatsOutput' => 'maintenance/language/StatOutputs.php',
465
466 );
467
468 /**
469 * autoload - take a class name and attempt to load it
470 *
471 * @param string $className Name of class we're looking for.
472 * @return bool Returning false is important on failure as
473 * it allows Zend to try and look in other registered autoloaders
474 * as well.
475 */
476 static function autoload( $className ) {
477 global $wgAutoloadClasses;
478
479 wfProfileIn( __METHOD__ );
480 if ( isset( self::$localClasses[$className] ) ) {
481 $filename = self::$localClasses[$className];
482 } elseif ( isset( $wgAutoloadClasses[$className] ) ) {
483 $filename = $wgAutoloadClasses[$className];
484 } else {
485 # Try a different capitalisation
486 # The case can sometimes be wrong when unserializing PHP 4 objects
487 $filename = false;
488 $lowerClass = strtolower( $className );
489 foreach ( self::$localClasses as $class2 => $file2 ) {
490 if ( strtolower( $class2 ) == $lowerClass ) {
491 $filename = $file2;
492 }
493 }
494 if ( !$filename ) {
495 # Give up
496 wfProfileOut( __METHOD__ );
497 return false;
498 }
499 }
500
501 # Make an absolute path, this improves performance by avoiding some stat calls
502 if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) != ':' ) {
503 global $IP;
504 $filename = "$IP/$filename";
505 }
506 require( $filename );
507 wfProfileOut( __METHOD__ );
508 return true;
509 }
510
511 static function loadAllExtensions() {
512 global $wgAutoloadClasses;
513
514 foreach( $wgAutoloadClasses as $class => $file ) {
515 if( !( class_exists( $class ) || interface_exists( $class ) ) ) {
516 require( $file );
517 }
518 }
519 }
520 }
521
522 function wfLoadAllExtensions() {
523 AutoLoader::loadAllExtensions();
524 }
525
526 if ( function_exists( 'spl_autoload_register' ) ) {
527 spl_autoload_register( array( 'AutoLoader', 'autoload' ) );
528 } else {
529 function __autoload( $class ) {
530 AutoLoader::autoload( $class );
531 }
532 }
533