(bug 13735) Added prop=categoryinfo module
[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 function __autoload($className) {
8 global $wgAutoloadClasses;
9
10 # Locations of core classes
11 # Extension classes are specified with $wgAutoloadClasses
12 static $localClasses = array(
13 # Includes
14 'AjaxCachePolicy' => 'includes/AjaxFunctions.php',
15 'AjaxDispatcher' => 'includes/AjaxDispatcher.php',
16 'AjaxResponse' => 'includes/AjaxResponse.php',
17 'AlphabeticPager' => 'includes/Pager.php',
18 'AncientPagesPage' => 'includes/SpecialAncientpages.php',
19 'APCBagOStuff' => 'includes/BagOStuff.php',
20 'ArrayDiffFormatter' => 'includes/DifferenceEngine.php',
21 'Article' => 'includes/Article.php',
22 'AtomFeed' => 'includes/Feed.php',
23 'AuthPlugin' => 'includes/AuthPlugin.php',
24 'Autopromote' => 'includes/Autopromote.php',
25 'BagOStuff' => 'includes/BagOStuff.php',
26 'Block' => 'includes/Block.php',
27 'BrokenRedirectsPage' => 'includes/SpecialBrokenRedirects.php',
28 'Category' => 'includes/Category.php',
29 'Categoryfinder' => 'includes/Categoryfinder.php',
30 'CategoryList' => 'includes/Category.php',
31 'CategoryPage' => 'includes/CategoryPage.php',
32 'CategoryViewer' => 'includes/CategoryPage.php',
33 'ChangesList' => 'includes/ChangesList.php',
34 'ChannelFeed' => 'includes/Feed.php',
35 'ChronologyProtector' => 'includes/LBFactory.php',
36 'ConcatenatedGzipHistoryBlob' => 'includes/HistoryBlob.php',
37 'ContributionsPage' => 'includes/SpecialContributions.php',
38 'CoreParserFunctions' => 'includes/CoreParserFunctions.php',
39 'Database' => 'includes/Database.php',
40 'DatabaseMysql' => 'includes/Database.php',
41 'DatabaseOracle' => 'includes/DatabaseOracle.php',
42 'DatabasePostgres' => 'includes/DatabasePostgres.php',
43 'DateFormatter' => 'includes/DateFormatter.php',
44 'DBABagOStuff' => 'includes/BagOStuff.php',
45 'DBLockForm' => 'includes/SpecialLockdb.php',
46 'DBObject' => 'includes/Database.php',
47 'DBUnlockForm' => 'includes/SpecialUnlockdb.php',
48 'DeadendPagesPage' => 'includes/SpecialDeadendpages.php',
49 'DependencyWrapper' => 'includes/CacheDependency.php',
50 '_DiffEngine' => 'includes/DifferenceEngine.php',
51 'DifferenceEngine' => 'includes/DifferenceEngine.php',
52 'DiffFormatter' => 'includes/DifferenceEngine.php',
53 'Diff' => 'includes/DifferenceEngine.php',
54 '_DiffOp_Add' => 'includes/DifferenceEngine.php',
55 '_DiffOp_Change' => 'includes/DifferenceEngine.php',
56 '_DiffOp_Copy' => 'includes/DifferenceEngine.php',
57 '_DiffOp_Delete' => 'includes/DifferenceEngine.php',
58 '_DiffOp' => 'includes/DifferenceEngine.php',
59 'DisambiguationsPage' => 'includes/SpecialDisambiguations.php',
60 'DjVuImage' => 'includes/DjVuImage.php',
61 'DoubleRedirectsPage' => 'includes/SpecialDoubleRedirects.php',
62 'DoubleReplacer' => 'includes/StringUtils.php',
63 'Dump7ZipOutput' => 'includes/Export.php',
64 'DumpBZip2Output' => 'includes/Export.php',
65 'DumpFileOutput' => 'includes/Export.php',
66 'DumpFilter' => 'includes/Export.php',
67 'DumpGZipOutput' => 'includes/Export.php',
68 'DumpLatestFilter' => 'includes/Export.php',
69 'DumpMultiWriter' => 'includes/Export.php',
70 'DumpNamespaceFilter' => 'includes/Export.php',
71 'DumpNotalkFilter' => 'includes/Export.php',
72 'DumpOutput' => 'includes/Export.php',
73 'DumpPipeOutput' => 'includes/Export.php',
74 'eAccelBagOStuff' => 'includes/BagOStuff.php',
75 'EditPage' => 'includes/EditPage.php',
76 'EmailConfirmation' => 'includes/SpecialConfirmemail.php',
77 'EmailInvalidation' => 'includes/SpecialConfirmemail.php',
78 'EmaillingJob' => 'includes/EmaillingJob.php',
79 'EmaillingJob' => 'includes/JobQueue.php',
80 'EmailNotification' => 'includes/UserMailer.php',
81 'EmailUserForm' => 'includes/SpecialEmailuser.php',
82 'EnhancedChangesList' => 'includes/ChangesList.php',
83 'EnotifNotifyJob' => 'includes/EnotifNotifyJob.php',
84 'Exif' => 'includes/Exif.php',
85 'ExternalEdit' => 'includes/ExternalEdit.php',
86 'ExternalStoreDB' => 'includes/ExternalStoreDB.php',
87 'ExternalStoreHttp' => 'includes/ExternalStoreHttp.php',
88 'ExternalStore' => 'includes/ExternalStore.php',
89 'FakeMemCachedClient' => 'includes/ObjectCache.php',
90 'FakeTitle' => 'includes/FakeTitle.php',
91 'FauxRequest' => 'includes/WebRequest.php',
92 'FeedItem' => 'includes/Feed.php',
93 'FewestrevisionsPage' => 'includes/SpecialFewestrevisions.php',
94 'FileDeleteForm' => 'includes/FileDeleteForm.php',
95 'FileDependency' => 'includes/CacheDependency.php',
96 'FileDuplicateSearch' => 'includes/SpecialFileDuplicateSearch.php',
97 'FileRevertForm' => 'includes/FileRevertForm.php',
98 'FileStore' => 'includes/FileStore.php',
99 'FormatExif' => 'includes/Exif.php',
100 'FormOptions' => 'includes/FormOptions.php',
101 'FSException' => 'includes/FileStore.php',
102 'FSTransaction' => 'includes/FileStore.php',
103 'HashBagOStuff' => 'includes/BagOStuff.php',
104 'HashtableReplacer' => 'includes/StringUtils.php',
105 'HistoryBlobCurStub' => 'includes/HistoryBlob.php',
106 'HistoryBlob' => 'includes/HistoryBlob.php',
107 'HistoryBlobStub' => 'includes/HistoryBlob.php',
108 'HTMLCacheUpdate' => 'includes/HTMLCacheUpdate.php',
109 'HTMLCacheUpdateJob' => 'includes/HTMLCacheUpdate.php',
110 'HTMLFileCache' => 'includes/HTMLFileCache.php',
111 'Http' => 'includes/HttpFunctions.php',
112 '_HWLDF_WordAccumulator' => 'includes/DifferenceEngine.php',
113 'ImageGallery' => 'includes/ImageGallery.php',
114 'ImageHistoryList' => 'includes/ImagePage.php',
115 'ImagePage' => 'includes/ImagePage.php',
116 'ImageQueryPage' => 'includes/ImageQueryPage.php',
117 'ImportStreamSource' => 'includes/SpecialImport.php',
118 'ImportStringSource' => 'includes/SpecialImport.php',
119 'IncludableSpecialPage' => 'includes/SpecialPage.php',
120 'IndexPager' => 'includes/Pager.php',
121 'IPBlockForm' => 'includes/SpecialBlockip.php',
122 'IP' => 'includes/IP.php',
123 'IPUnblockForm' => 'includes/SpecialIpblocklist.php',
124 'Job' => 'includes/JobQueue.php',
125 'LBFactory' => 'includes/LBFactory.php',
126 'LBFactory_Multi' => 'includes/LBFactory_Multi.php',
127 'LBFactory_Simple' => 'includes/LBFactory.php',
128 'License' => 'includes/Licenses.php',
129 'Licenses' => 'includes/Licenses.php',
130 'LinkBatch' => 'includes/LinkBatch.php',
131 'LinkCache' => 'includes/LinkCache.php',
132 'Linker' => 'includes/Linker.php',
133 'LinkFilter' => 'includes/LinkFilter.php',
134 'LinksUpdate' => 'includes/LinksUpdate.php',
135 'ListredirectsPage' => 'includes/SpecialListredirects.php',
136 'LoadBalancer' => 'includes/LoadBalancer.php',
137 'LoginForm' => 'includes/SpecialUserlogin.php',
138 'LogPage' => 'includes/LogPage.php',
139 'LogEventsList' => 'includes/LogEventsList.php',
140 'LogReader' => 'includes/LogEventsList.php',
141 'LogViewer' => 'includes/LogEventsList.php',
142 'LonelyPagesPage' => 'includes/SpecialLonelypages.php',
143 'LongPagesPage' => 'includes/SpecialLongpages.php',
144 'MacBinary' => 'includes/MacBinary.php',
145 'MagicWordArray' => 'includes/MagicWord.php',
146 'MagicWord' => 'includes/MagicWord.php',
147 'MailAddress' => 'includes/UserMailer.php',
148 'MappedDiff' => 'includes/DifferenceEngine.php',
149 'MathRenderer' => 'includes/Math.php',
150 'MediaTransformError' => 'includes/MediaTransformOutput.php',
151 'MediaTransformOutput' => 'includes/MediaTransformOutput.php',
152 'MediaWikiBagOStuff' => 'includes/BagOStuff.php',
153 'MediaWiki_I18N' => 'includes/SkinTemplate.php',
154 'MediaWiki' => 'includes/Wiki.php',
155 'memcached' => 'includes/memcached-client.php',
156 'MessageCache' => 'includes/MessageCache.php',
157 'MimeMagic' => 'includes/MimeMagic.php',
158 'MIMEsearchPage' => 'includes/SpecialMIMEsearch.php',
159 'MostcategoriesPage' => 'includes/SpecialMostcategories.php',
160 'MostimagesPage' => 'includes/SpecialMostimages.php',
161 'MostlinkedCategoriesPage' => 'includes/SpecialMostlinkedcategories.php',
162 'MostlinkedPage' => 'includes/SpecialMostlinked.php',
163 'MostrevisionsPage' => 'includes/SpecialMostrevisions.php',
164 'MovePageForm' => 'includes/SpecialMovepage.php',
165 'MWException' => 'includes/Exception.php',
166 'MWNamespace' => 'includes/Namespace.php',
167 'MySQLSearchResultSet' => 'includes/SearchMySQL.php',
168 'MySQLMasterPos' => 'includes/Database.php',
169 'Namespace' => 'includes/NamespaceCompat.php', // Compat
170 'NewbieContributionsPage' => 'includes/SpecialNewbieContributions.php',
171 'NewPagesPage' => 'includes/SpecialNewpages.php',
172 'OldChangesList' => 'includes/ChangesList.php',
173 'OutputPage' => 'includes/OutputPage.php',
174 'PageArchive' => 'includes/SpecialUndelete.php',
175 'PageHistory' => 'includes/PageHistory.php',
176 'PageQueryPage' => 'includes/PageQueryPage.php',
177 'ParserCache' => 'includes/ParserCache.php',
178 'Parser_DiffTest' => 'includes/Parser_DiffTest.php',
179 'Parser' => 'includes/Parser.php',
180 'Parser_OldPP' => 'includes/Parser_OldPP.php',
181 'ParserOptions' => 'includes/ParserOptions.php',
182 'ParserOutput' => 'includes/ParserOutput.php',
183 'PasswordResetForm' => 'includes/SpecialResetpass.php',
184 'PatrolLog' => 'includes/PatrolLog.php',
185 'PopularPagesPage' => 'includes/SpecialPopularpages.php',
186 'PPDStackElement' => 'includes/Preprocessor_DOM.php',
187 'PPDStack' => 'includes/Preprocessor_DOM.php',
188 'PPFrame_DOM' => 'includes/Preprocessor_DOM.php',
189 'PPFrame' => 'includes/Preprocessor.php',
190 'PPNode_DOM' => 'includes/Preprocessor_DOM.php',
191 'PPNode' => 'includes/Preprocessor.php',
192 'PPTemplateFrame_DOM' => 'includes/Preprocessor_DOM.php',
193 'PreferencesForm' => 'includes/SpecialPreferences.php',
194 'PrefixSearch' => 'includes/PrefixSearch.php',
195 'Preprocessor_DOM' => 'includes/Preprocessor_DOM.php',
196 'Preprocessor_Hash' => 'includes/Preprocessor_Hash.php',
197 'Preprocessor' => 'includes/Preprocessor.php',
198 'Profiler' => 'includes/Profiler.php',
199 'ProfilerSimple' => 'includes/ProfilerSimple.php',
200 'ProfilerSimpleText' => 'includes/ProfilerSimpleText.php',
201 'ProfilerSimpleUDP' => 'includes/ProfilerSimpleUDP.php',
202 'ProtectionForm' => 'includes/ProtectionForm.php',
203 'ProxyTools' => 'includes/ProxyTools.php',
204 'QueryPage' => 'includes/QueryPage.php',
205 'QuickTemplate' => 'includes/SkinTemplate.php',
206 'RandomPage' => 'includes/SpecialRandompage.php',
207 'RawPage' => 'includes/RawPage.php',
208 'RCCacheEntry' => 'includes/ChangesList.php',
209 'RecentChange' => 'includes/RecentChange.php',
210 'RefreshLinksJob' => 'includes/RefreshLinksJob.php',
211 'RegexlikeReplacer' => 'includes/StringUtils.php',
212 'ReplacementArray' => 'includes/StringUtils.php',
213 'Replacer' => 'includes/StringUtils.php',
214 'ResultWrapper' => 'includes/Database.php',
215 'ReverseChronologicalPager' => 'includes/Pager.php',
216 'RevisionDeleteForm' => 'includes/SpecialRevisiondelete.php',
217 'RevisionDeleter' => 'includes/SpecialRevisiondelete.php',
218 'Revision' => 'includes/Revision.php',
219 'RSSFeed' => 'includes/Feed.php',
220 'Sanitizer' => 'includes/Sanitizer.php',
221 'SearchEngineDummy' => 'includes/SearchEngine.php',
222 'SearchEngine' => 'includes/SearchEngine.php',
223 'SearchMySQL4' => 'includes/SearchMySQL4.php',
224 'SearchMySQL' => 'includes/SearchMySQL.php',
225 'SearchOracle' => 'includes/SearchOracle.php',
226 'SearchPostgres' => 'includes/SearchPostgres.php',
227 'SearchResult' => 'includes/SearchEngine.php',
228 'SearchResultSet' => 'includes/SearchEngine.php',
229 'SearchUpdate' => 'includes/SearchUpdate.php',
230 'SearchUpdateMyISAM' => 'includes/SearchUpdate.php',
231 'ShortPagesPage' => 'includes/SpecialShortpages.php',
232 'SiteConfiguration' => 'includes/SiteConfiguration.php',
233 'SiteStats' => 'includes/SiteStats.php',
234 'SiteStatsUpdate' => 'includes/SiteStats.php',
235 'Skin' => 'includes/Skin.php',
236 'SkinTemplate' => 'includes/SkinTemplate.php',
237 'SpecialAllpages' => 'includes/SpecialAllpages.php',
238 'SpecialBookSources' => 'includes/SpecialBooksources.php',
239 'SpecialListGroupRights' => 'includes/SpecialListgrouprights.php',
240 'SpecialMostlinkedtemplates' => 'includes/SpecialMostlinkedtemplates.php',
241 'SpecialPage' => 'includes/SpecialPage.php',
242 'SpecialPrefixindex' => 'includes/SpecialPrefixindex.php',
243 'SpecialRandomredirect' => 'includes/SpecialRandomredirect.php',
244 'SpecialSearch' => 'includes/SpecialSearch.php',
245 'SpecialVersion' => 'includes/SpecialVersion.php',
246 'SqlBagOStuff' => 'includes/BagOStuff.php',
247 'SquidUpdate' => 'includes/SquidUpdate.php',
248 'Status' => 'includes/Status.php',
249 'StringUtils' => 'includes/StringUtils.php',
250 'TableDiffFormatter' => 'includes/DifferenceEngine.php',
251 'TablePager' => 'includes/Pager.php',
252 'ThumbnailImage' => 'includes/MediaTransformOutput.php',
253 'TitleDependency' => 'includes/CacheDependency.php',
254 'Title' => 'includes/Title.php',
255 'TitleListDependency' => 'includes/CacheDependency.php',
256 'TransformParameterError' => 'includes/MediaTransformOutput.php',
257 'TurckBagOStuff' => 'includes/BagOStuff.php',
258 'UncategorizedCategoriesPage' => 'includes/SpecialUncategorizedcategories.php',
259 'UncategorizedPagesPage' => 'includes/SpecialUncategorizedpages.php',
260 'UncategorizedTemplatesPage' => 'includes/SpecialUncategorizedtemplates.php',
261 'UndeleteForm' => 'includes/SpecialUndelete.php',
262 'UnifiedDiffFormatter' => 'includes/DifferenceEngine.php',
263 'UnlistedSpecialPage' => 'includes/SpecialPage.php',
264 'UnusedCategoriesPage' => 'includes/SpecialUnusedcategories.php',
265 'UnusedimagesPage' => 'includes/SpecialUnusedimages.php',
266 'UnusedtemplatesPage' => 'includes/SpecialUnusedtemplates.php',
267 'UnwatchedpagesPage' => 'includes/SpecialUnwatchedpages.php',
268 'UploadForm' => 'includes/SpecialUpload.php',
269 'UploadFormMogile' => 'includes/SpecialUploadMogile.php',
270 'User' => 'includes/User.php',
271 'UserArray' => 'includes/UserArray.php',
272 'UserArrayFromResult' => 'includes/UserArray.php',
273 'UserMailer' => 'includes/UserMailer.php',
274 'UserrightsPage' => 'includes/SpecialUserrights.php',
275 'UserRightsProxy' => 'includes/UserRightsProxy.php',
276 'WantedCategoriesPage' => 'includes/SpecialWantedcategories.php',
277 'WantedPagesPage' => 'includes/SpecialWantedpages.php',
278 'WatchedItem' => 'includes/WatchedItem.php',
279 'WatchlistEditor' => 'includes/WatchlistEditor.php',
280 'WebRequest' => 'includes/WebRequest.php',
281 'WebResponse' => 'includes/WebResponse.php',
282 'WhatLinksHerePage' => 'includes/SpecialWhatlinkshere.php',
283 'WikiError' => 'includes/WikiError.php',
284 'WikiErrorMsg' => 'includes/WikiError.php',
285 'WikiExporter' => 'includes/Export.php',
286 'WikiImporter' => 'includes/SpecialImport.php',
287 'WikiRevision' => 'includes/SpecialImport.php',
288 'WikiXmlError' => 'includes/WikiError.php',
289 'WithoutInterwikiPage' => 'includes/SpecialWithoutinterwiki.php',
290 'WordLevelDiff' => 'includes/DifferenceEngine.php',
291 'XCacheBagOStuff' => 'includes/BagOStuff.php',
292 'XmlDumpWriter' => 'includes/Export.php',
293 'Xml' => 'includes/Xml.php',
294 'XmlTypeCheck' => 'includes/XmlTypeCheck.php',
295 'ZhClient' => 'includes/ZhClient.php',
296
297 # filerepo
298 'ArchivedFile' => 'includes/filerepo/ArchivedFile.php',
299 'File' => 'includes/filerepo/File.php',
300 'FileRepo' => 'includes/filerepo/FileRepo.php',
301 'FileRepoStatus' => 'includes/filerepo/FileRepoStatus.php',
302 'ForeignDBFile' => 'includes/filerepo/ForeignDBFile.php',
303 'ForeignDBRepo' => 'includes/filerepo/ForeignDBRepo.php',
304 'ForeignDBViaLBRepo' => 'includes/filerepo/ForeignDBViaLBRepo.php',
305 'FSRepo' => 'includes/filerepo/FSRepo.php',
306 'Image' => 'includes/filerepo/Image.php',
307 'LocalFileDeleteBatch' => 'includes/filerepo/LocalFile.php',
308 'LocalFile' => 'includes/filerepo/LocalFile.php',
309 'LocalFileRestoreBatch' => 'includes/filerepo/LocalFile.php',
310 'LocalRepo' => 'includes/filerepo/LocalRepo.php',
311 'OldLocalFile' => 'includes/filerepo/OldLocalFile.php',
312 'RepoGroup' => 'includes/filerepo/RepoGroup.php',
313 'UnregisteredLocalFile' => 'includes/filerepo/UnregisteredLocalFile.php',
314
315 # Media
316 'BitmapHandler' => 'includes/media/Bitmap.php',
317 'BmpHandler' => 'includes/media/BMP.php',
318 'DjVuHandler' => 'includes/media/DjVu.php',
319 'ImageHandler' => 'includes/media/Generic.php',
320 'MediaHandler' => 'includes/media/Generic.php',
321 'SvgHandler' => 'includes/media/SVG.php',
322
323 # Normal
324 'UtfNormal' => 'includes/normal/UtfNormal.php',
325
326 # Templates
327 'UsercreateTemplate' => 'includes/templates/Userlogin.php',
328 'UserloginTemplate' => 'includes/templates/Userlogin.php',
329
330 # Languages
331 'Language' => 'languages/Language.php',
332
333 # API
334 'ApiBase' => 'includes/api/ApiBase.php',
335 'ApiExpandTemplates' => 'includes/api/ApiExpandTemplates.php',
336 'ApiFeedWatchlist' => 'includes/api/ApiFeedWatchlist.php',
337 'ApiFormatBase' => 'includes/api/ApiFormatBase.php',
338 'ApiFormatDbg' => 'includes/api/ApiFormatDbg.php',
339 'ApiFormatFeedWrapper' => 'includes/api/ApiFormatBase.php',
340 'ApiFormatJson' => 'includes/api/ApiFormatJson.php',
341 'ApiFormatPhp' => 'includes/api/ApiFormatPhp.php',
342 'ApiFormatTxt' => 'includes/api/ApiFormatTxt.php',
343 'ApiFormatWddx' => 'includes/api/ApiFormatWddx.php',
344 'ApiFormatXml' => 'includes/api/ApiFormatXml.php',
345 'ApiFormatYaml' => 'includes/api/ApiFormatYaml.php',
346 'ApiHelp' => 'includes/api/ApiHelp.php',
347 'ApiLogin' => 'includes/api/ApiLogin.php',
348 'ApiLogout' => 'includes/api/ApiLogout.php',
349 'ApiMain' => 'includes/api/ApiMain.php',
350 'ApiOpenSearch' => 'includes/api/ApiOpenSearch.php',
351 'ApiPageSet' => 'includes/api/ApiPageSet.php',
352 'ApiParamInfo' => 'includes/api/ApiParamInfo.php',
353 'ApiParse' => 'includes/api/ApiParse.php',
354 'ApiQueryAllImages' => 'includes/api/ApiQueryAllimages.php',
355 'ApiQueryAllCategories' => 'includes/api/ApiQueryAllCategories.php',
356 'ApiQueryAllLinks' => 'includes/api/ApiQueryAllLinks.php',
357 'ApiQueryAllmessages' => 'includes/api/ApiQueryAllmessages.php',
358 'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php',
359 'ApiQueryAllUsers' => 'includes/api/ApiQueryAllUsers.php',
360 'ApiQueryBacklinks' => 'includes/api/ApiQueryBacklinks.php',
361 'ApiQueryBase' => 'includes/api/ApiQueryBase.php',
362 'ApiQueryCategories' => 'includes/api/ApiQueryCategories.php',
363 'ApiQueryCategoryMembers' => 'includes/api/ApiQueryCategoryMembers.php',
364 'ApiQueryCategoryInfo' => 'includes/api/ApiQueryCategoryInfo.php',
365 'ApiQueryContributions' => 'includes/api/ApiQueryUserContributions.php',
366 'ApiQueryExternalLinks' => 'includes/api/ApiQueryExternalLinks.php',
367 'ApiQueryExtLinksUsage' => 'includes/api/ApiQueryExtLinksUsage.php',
368 'ApiQueryGeneratorBase' => 'includes/api/ApiQueryBase.php',
369 'ApiQueryImageInfo' => 'includes/api/ApiQueryImageInfo.php',
370 'ApiQueryImages' => 'includes/api/ApiQueryImages.php',
371 'ApiQuery' => 'includes/api/ApiQuery.php',
372 'ApiQueryInfo' => 'includes/api/ApiQueryInfo.php',
373 'ApiQueryLangLinks' => 'includes/api/ApiQueryLangLinks.php',
374 'ApiQueryLinks' => 'includes/api/ApiQueryLinks.php',
375 'ApiQueryLogEvents' => 'includes/api/ApiQueryLogEvents.php',
376 'ApiQueryRandom' => 'includes/api/ApiQueryRandom.php',
377 'ApiQueryRecentChanges'=> 'includes/api/ApiQueryRecentChanges.php',
378 'ApiQueryRevisions' => 'includes/api/ApiQueryRevisions.php',
379 'ApiQuerySearch' => 'includes/api/ApiQuerySearch.php',
380 'ApiQuerySiteinfo' => 'includes/api/ApiQuerySiteinfo.php',
381 'ApiQueryUserInfo' => 'includes/api/ApiQueryUserInfo.php',
382 'ApiQueryUsers' => 'includes/api/ApiQueryUsers.php',
383 'ApiQueryWatchlist' => 'includes/api/ApiQueryWatchlist.php',
384 'ApiResult' => 'includes/api/ApiResult.php',
385 'Services_JSON' => 'includes/api/ApiFormatJson_json.php',
386 'Spyc' => 'includes/api/ApiFormatYaml_spyc.php',
387
388 # apiedit branch
389 'ApiBlock' => 'includes/api/ApiBlock.php',
390 'ApiDelete' => 'includes/api/ApiDelete.php',
391 'ApiEditPage' => 'includes/api/ApiEditPage.php',
392 'ApiMove' => 'includes/api/ApiMove.php',
393 'ApiProtect' => 'includes/api/ApiProtect.php',
394 'ApiQueryBlocks' => 'includes/api/ApiQueryBlocks.php',
395 'ApiQueryDeletedrevs' => 'includes/api/ApiQueryDeletedrevs.php',
396 'ApiRollback' => 'includes/api/ApiRollback.php',
397 'ApiUnblock' => 'includes/api/ApiUnblock.php',
398 'ApiUndelete' => 'includes/api/ApiUndelete.php',
399 );
400
401 wfProfileIn( __METHOD__ );
402 if ( isset( $localClasses[$className] ) ) {
403 $filename = $localClasses[$className];
404 } elseif ( isset( $wgAutoloadClasses[$className] ) ) {
405 $filename = $wgAutoloadClasses[$className];
406 } else {
407 # Try a different capitalisation
408 # The case can sometimes be wrong when unserializing PHP 4 objects
409 $filename = false;
410 $lowerClass = strtolower( $className );
411 foreach ( $localClasses as $class2 => $file2 ) {
412 if ( strtolower( $class2 ) == $lowerClass ) {
413 $filename = $file2;
414 }
415 }
416 if ( !$filename ) {
417 # Give up
418 wfProfileOut( __METHOD__ );
419 return;
420 }
421 }
422
423 # Make an absolute path, this improves performance by avoiding some stat calls
424 if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) != ':' ) {
425 global $IP;
426 $filename = "$IP/$filename";
427 }
428 require( $filename );
429 wfProfileOut( __METHOD__ );
430 }
431
432 function wfLoadAllExtensions() {
433 global $wgAutoloadClasses;
434
435 # It is crucial that SpecialPage.php is included before any special page
436 # extensions are loaded. Otherwise the parent class will not be available
437 # when APC loads the early-bound extension class. Normally this is
438 # guaranteed by entering special pages via SpecialPage members such as
439 # executePath(), but here we have to take a more explicit measure.
440
441 require_once( dirname(__FILE__) . '/SpecialPage.php' );
442
443 foreach( $wgAutoloadClasses as $class => $file ) {
444 if( !( class_exists( $class ) || interface_exists( $class ) ) ) {
445 require( $file );
446 }
447 }
448 }