2006-06-06 09:50:01 +00:00
|
|
|
<?php
|
2010-08-08 14:23:14 +00:00
|
|
|
/**
|
|
|
|
|
* This defines autoloading handler for whole MediaWiki framework
|
|
|
|
|
*
|
|
|
|
|
* @file
|
|
|
|
|
*/
|
2006-07-02 15:57:59 +00:00
|
|
|
|
2010-08-08 14:23:14 +00:00
|
|
|
/**
|
|
|
|
|
* Locations of core classes
|
|
|
|
|
* Extension classes are specified with $wgAutoloadClasses
|
|
|
|
|
* This array is a global instead of a static member of AutoLoader to work around a bug in APC
|
|
|
|
|
*/
|
2008-07-24 12:51:26 +00:00
|
|
|
global $wgAutoloadLocalClasses;
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2008-09-14 19:51:25 +00:00
|
|
|
$wgAutoloadLocalClasses = array(
|
2008-07-24 12:45:23 +00:00
|
|
|
# Includes
|
2011-04-14 10:38:29 +00:00
|
|
|
'Action' => 'includes/Action.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'AjaxDispatcher' => 'includes/AjaxDispatcher.php',
|
|
|
|
|
'AjaxResponse' => 'includes/AjaxResponse.php',
|
|
|
|
|
'AlphabeticPager' => 'includes/Pager.php',
|
|
|
|
|
'Article' => 'includes/Article.php',
|
|
|
|
|
'AtomFeed' => 'includes/Feed.php',
|
|
|
|
|
'AuthPlugin' => 'includes/AuthPlugin.php',
|
2008-10-05 02:45:12 +00:00
|
|
|
'AuthPluginUser' => 'includes/AuthPlugin.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Autopromote' => 'includes/Autopromote.php',
|
2009-02-16 14:26:34 +00:00
|
|
|
'BacklinkCache' => 'includes/BacklinkCache.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'BadTitle' => 'includes/Title.php',
|
|
|
|
|
'BaseTemplate' => 'includes/SkinTemplate.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Block' => 'includes/Block.php',
|
|
|
|
|
'Category' => 'includes/Category.php',
|
|
|
|
|
'Categoryfinder' => 'includes/Categoryfinder.php',
|
|
|
|
|
'CategoryPage' => 'includes/CategoryPage.php',
|
|
|
|
|
'CategoryViewer' => 'includes/CategoryPage.php',
|
2009-06-20 15:59:56 +00:00
|
|
|
'CdbFunctions' => 'includes/Cdb_PHP.php',
|
|
|
|
|
'CdbReader' => 'includes/Cdb.php',
|
|
|
|
|
'CdbReader_DBA' => 'includes/Cdb.php',
|
|
|
|
|
'CdbReader_PHP' => 'includes/Cdb_PHP.php',
|
|
|
|
|
'CdbWriter' => 'includes/Cdb.php',
|
|
|
|
|
'CdbWriter_DBA' => 'includes/Cdb.php',
|
|
|
|
|
'CdbWriter_PHP' => 'includes/Cdb_PHP.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ChangesFeed' => 'includes/ChangesFeed.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ChangesList' => 'includes/ChangesList.php',
|
2009-01-28 19:08:18 +00:00
|
|
|
'ChangeTags' => 'includes/ChangeTags.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ChannelFeed' => 'includes/Feed.php',
|
2011-01-17 14:02:22 +00:00
|
|
|
'Collation' => 'includes/Collation.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ConcatenatedGzipHistoryBlob' => 'includes/HistoryBlob.php',
|
2009-06-17 17:20:01 +00:00
|
|
|
'ConfEditor' => 'includes/ConfEditor.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'ConfEditorParseError' => 'includes/ConfEditor.php',
|
|
|
|
|
'ConfEditorToken' => 'includes/ConfEditor.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'Cookie' => 'includes/Cookie.php',
|
|
|
|
|
'CookieJar' => 'includes/Cookie.php',
|
2008-10-17 09:11:43 +00:00
|
|
|
'DiffHistoryBlob' => 'includes/HistoryBlob.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'DjVuImage' => 'includes/DjVuImage.php',
|
|
|
|
|
'DoubleReplacer' => 'includes/StringUtils.php',
|
2011-04-03 14:59:58 +00:00
|
|
|
'DummyLinker' => 'includes/Linker.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Dump7ZipOutput' => 'includes/Export.php',
|
|
|
|
|
'DumpBZip2Output' => 'includes/Export.php',
|
|
|
|
|
'DumpFileOutput' => 'includes/Export.php',
|
|
|
|
|
'DumpFilter' => 'includes/Export.php',
|
|
|
|
|
'DumpGZipOutput' => 'includes/Export.php',
|
|
|
|
|
'DumpLatestFilter' => 'includes/Export.php',
|
|
|
|
|
'DumpMultiWriter' => 'includes/Export.php',
|
|
|
|
|
'DumpNamespaceFilter' => 'includes/Export.php',
|
|
|
|
|
'DumpNotalkFilter' => 'includes/Export.php',
|
|
|
|
|
'DumpOutput' => 'includes/Export.php',
|
|
|
|
|
'DumpPipeOutput' => 'includes/Export.php',
|
|
|
|
|
'EditPage' => 'includes/EditPage.php',
|
|
|
|
|
'EmailNotification' => 'includes/UserMailer.php',
|
|
|
|
|
'EnhancedChangesList' => 'includes/ChangesList.php',
|
|
|
|
|
'ErrorPageError' => 'includes/Exception.php',
|
2008-08-16 10:13:35 +00:00
|
|
|
'ExplodeIterator' => 'includes/StringUtils.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ExternalEdit' => 'includes/ExternalEdit.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ExternalStore' => 'includes/ExternalStore.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ExternalStoreDB' => 'includes/ExternalStoreDB.php',
|
|
|
|
|
'ExternalStoreHttp' => 'includes/ExternalStoreHttp.php',
|
Add experimental new auth framework, ExternalAuth
This should not affect any existing behavior. (Except that it reorders
some error conditions in attemptAutoCreate(), but probably no one cares
about that.) It adds a new database table, but it will be unused unless
you enable external authentication.
An outline of the rationale for this system, and the design planning, is
at <http://www.mediawiki.org/wiki/ExternalAuth>. Essentially,
AuthPlugin puts too much of a burden on plugin authors, requiring them
to write a lot of policy logic instead of just handling the actual
interface to the external user database. This system uses a standard
framework to decide policy questions, and auth plugins only need to
provide some low-level, clearly-specified data.
There are lots of features still missing, marked in the code, but basic
functionality is present. The commit includes initial support for one
type of external authentication, the forum software vBulletin (which I
happen to know well, and want to integrate with my MediaWiki).
I'm encouraging the inclusion of ExternalAuth plugins in core because in
this framework, the amount of code required to add an additional backend
is quite small -- well under 100 lines in this case. I'd hope to see a
lot more of these, and it seems unreasonable to make an armada of tiny
extensions instead of letting them live happily in their own directory
out of everyone's way.
2009-07-19 22:02:00 +00:00
|
|
|
'ExternalUser' => 'includes/ExternalUser.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'FakeTitle' => 'includes/FakeTitle.php',
|
2011-01-02 15:54:18 +00:00
|
|
|
'Fallback' => 'includes/Fallback.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'FatalError' => 'includes/Exception.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'FauxRequest' => 'includes/WebRequest.php',
|
2010-02-10 10:36:11 +00:00
|
|
|
'FauxResponse' => 'includes/WebResponse.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'FeedItem' => 'includes/Feed.php',
|
|
|
|
|
'FeedUtils' => 'includes/FeedUtils.php',
|
|
|
|
|
'FileDeleteForm' => 'includes/FileDeleteForm.php',
|
|
|
|
|
'FileRevertForm' => 'includes/FileRevertForm.php',
|
2009-02-26 06:02:32 +00:00
|
|
|
'ForkController' => 'includes/ForkController.php',
|
2011-05-07 15:30:46 +00:00
|
|
|
'FormlessAction' => 'includes/Action.php',
|
|
|
|
|
'FormAction' => 'includes/Action.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'FormOptions' => 'includes/FormOptions.php',
|
2011-04-20 15:27:09 +00:00
|
|
|
'FormSpecialPage' => 'includes/SpecialPage.php',
|
2011-02-12 20:40:40 +00:00
|
|
|
'GenderCache' => 'includes/GenderCache.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'HashtableReplacer' => 'includes/StringUtils.php',
|
|
|
|
|
'HistoryBlob' => 'includes/HistoryBlob.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'HistoryBlobCurStub' => 'includes/HistoryBlob.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'HistoryBlobStub' => 'includes/HistoryBlob.php',
|
2009-08-17 05:09:36 +00:00
|
|
|
'HistoryPage' => 'includes/HistoryPage.php',
|
|
|
|
|
'HistoryPager' => 'includes/HistoryPage.php',
|
2011-01-17 03:35:42 +00:00
|
|
|
'Hooks' => 'includes/Hooks.php',
|
2009-08-11 00:09:24 +00:00
|
|
|
'Html' => 'includes/Html.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'HTMLCheckField' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLEditTools' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLFloatField' => 'includes/HTMLForm.php',
|
2009-04-24 01:31:17 +00:00
|
|
|
'HTMLForm' => 'includes/HTMLForm.php',
|
2009-06-26 14:32:54 +00:00
|
|
|
'HTMLFormField' => 'includes/HTMLForm.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'HTMLHiddenField' => 'includes/HTMLForm.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'HTMLInfoField' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLIntField' => 'includes/HTMLForm.php',
|
2009-06-26 14:32:54 +00:00
|
|
|
'HTMLMultiSelectField' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLRadioField' => 'includes/HTMLForm.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'HTMLSelectAndOtherField' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLSelectField' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLSelectOrOtherField' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLSubmitField' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLTextAreaField' => 'includes/HTMLForm.php',
|
|
|
|
|
'HTMLTextField' => 'includes/HTMLForm.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Http' => 'includes/HttpFunctions.php',
|
2010-11-12 07:32:09 +00:00
|
|
|
'HttpRequest' => 'includes/HttpFunctions.old.php',
|
2011-01-17 14:02:22 +00:00
|
|
|
'IcuCollation' => 'includes/Collation.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ImageGallery' => 'includes/ImageGallery.php',
|
|
|
|
|
'ImageHistoryList' => 'includes/ImagePage.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'ImageHistoryPseudoPager' => 'includes/ImagePage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ImagePage' => 'includes/ImagePage.php',
|
|
|
|
|
'ImageQueryPage' => 'includes/ImageQueryPage.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ImportStreamSource' => 'includes/Import.php',
|
|
|
|
|
'ImportStringSource' => 'includes/Import.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'IncludableSpecialPage' => 'includes/SpecialPage.php',
|
|
|
|
|
'IndexPager' => 'includes/Pager.php',
|
2011-04-23 02:35:21 +00:00
|
|
|
'Interwiki' => 'includes/interwiki/Interwiki.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'IP' => 'includes/IP.php',
|
* Introduced a new system for localisation caching. The system is based around fast fetches of individual messages, minimising memory overhead and startup time in the typical case. It handles both core messages (formerly in Language.php) and extension messages (formerly in MessageCache.php). Profiling indicates a significant win for average throughput.
* The serialized message cache, which would have been redundant, has been removed. Similar performance characteristics can be achieved with $wgLocalisationCacheConf['manualRecache'] = true;
* Added a maintenance script rebuildLocalisationCache.php for offline rebuilding of the localisation cache.
* Extension i18n files can now contain any of the variables which can be set in Messages*.php. It is possible, and recommended, to use this feature instead of the hooks for special page aliases and magic words.
* $wgExtensionAliasesFiles, LanguageGetMagic and LanguageGetSpecialPageAliases are retained for backwards compatibility. $wgMessageCache->addMessages() and related functions have been removed. wfLoadExtensionMessages() is a no-op and can continue to be called for b/c.
* Introduced $wgCacheDirectory as a default location for the various local caches that have accumulated. Suggested $IP/cache as a good place for it in the default LocalSettings.php and created this directory with a deny-all .htaccess.
* Patched Exception.php to avoid using the message cache when an exception is thrown from within LocalisationCache, since this tends to fail horribly.
* Removed Language::getLocalisationArray(), Language::loadLocalisation(), Language::load()
* Fixed FileDependency::__sleep()
* In Cdb.php, fixed newlines in debug messages
In MessageCache::get():
* Replaced calls to $wgContLang capitalisation functions with plain PHP functions, reducing the typical case from 99us to 93us. Message cache keys are already documented as being restricted to ASCII.
* Implemented a more efficient way to filter out bogus language codes, reducing the "foo/en" case from 430us to 101us
* Optimised wfRunHooks() in the typical do-nothing case, from ~30us to ~3us. This reduced MessageCache::get() typical case time from 93us to 38us.
* Removed hook MessageNotInMwNs to save an extra 3us per cache hit. Reimplemented the only user (LocalisationUpdate) using the new hook LocalisationCacheRecache.
2009-06-28 07:11:43 +00:00
|
|
|
'LCStore_CDB' => 'includes/LocalisationCache.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'LCStore_DB' => 'includes/LocalisationCache.php',
|
2009-07-03 06:56:46 +00:00
|
|
|
'LCStore_Null' => 'includes/LocalisationCache.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'LegacyTemplate' => 'includes/SkinLegacy.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'License' => 'includes/Licenses.php',
|
|
|
|
|
'Licenses' => 'includes/Licenses.php',
|
|
|
|
|
'Linker' => 'includes/Linker.php',
|
|
|
|
|
'LinkFilter' => 'includes/LinkFilter.php',
|
|
|
|
|
'LinksUpdate' => 'includes/LinksUpdate.php',
|
* Introduced a new system for localisation caching. The system is based around fast fetches of individual messages, minimising memory overhead and startup time in the typical case. It handles both core messages (formerly in Language.php) and extension messages (formerly in MessageCache.php). Profiling indicates a significant win for average throughput.
* The serialized message cache, which would have been redundant, has been removed. Similar performance characteristics can be achieved with $wgLocalisationCacheConf['manualRecache'] = true;
* Added a maintenance script rebuildLocalisationCache.php for offline rebuilding of the localisation cache.
* Extension i18n files can now contain any of the variables which can be set in Messages*.php. It is possible, and recommended, to use this feature instead of the hooks for special page aliases and magic words.
* $wgExtensionAliasesFiles, LanguageGetMagic and LanguageGetSpecialPageAliases are retained for backwards compatibility. $wgMessageCache->addMessages() and related functions have been removed. wfLoadExtensionMessages() is a no-op and can continue to be called for b/c.
* Introduced $wgCacheDirectory as a default location for the various local caches that have accumulated. Suggested $IP/cache as a good place for it in the default LocalSettings.php and created this directory with a deny-all .htaccess.
* Patched Exception.php to avoid using the message cache when an exception is thrown from within LocalisationCache, since this tends to fail horribly.
* Removed Language::getLocalisationArray(), Language::loadLocalisation(), Language::load()
* Fixed FileDependency::__sleep()
* In Cdb.php, fixed newlines in debug messages
In MessageCache::get():
* Replaced calls to $wgContLang capitalisation functions with plain PHP functions, reducing the typical case from 99us to 93us. Message cache keys are already documented as being restricted to ASCII.
* Implemented a more efficient way to filter out bogus language codes, reducing the "foo/en" case from 430us to 101us
* Optimised wfRunHooks() in the typical do-nothing case, from ~30us to ~3us. This reduced MessageCache::get() typical case time from 93us to 38us.
* Removed hook MessageNotInMwNs to save an extra 3us per cache hit. Reimplemented the only user (LocalisationUpdate) using the new hook LocalisationCacheRecache.
2009-06-28 07:11:43 +00:00
|
|
|
'LocalisationCache' => 'includes/LocalisationCache.php',
|
|
|
|
|
'LocalisationCache_BulkLoad' => 'includes/LocalisationCache.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'LogEventsList' => 'includes/LogEventsList.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'LogPage' => 'includes/LogPage.php',
|
|
|
|
|
'LogPager' => 'includes/LogEventsList.php',
|
|
|
|
|
'MacBinary' => 'includes/MacBinary.php',
|
|
|
|
|
'MagicWord' => 'includes/MagicWord.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'MagicWordArray' => 'includes/MagicWord.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'MailAddress' => 'includes/UserMailer.php',
|
|
|
|
|
'MediaWiki' => 'includes/Wiki.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'MediaWiki_I18N' => 'includes/SkinTemplate.php',
|
2010-03-22 17:05:32 +00:00
|
|
|
'Message' => 'includes/Message.php',
|
2010-09-04 04:00:09 +00:00
|
|
|
'MessageBlobStore' => 'includes/MessageBlobStore.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'MimeMagic' => 'includes/MimeMagic.php',
|
|
|
|
|
'MWException' => 'includes/Exception.php',
|
2011-01-02 06:48:07 +00:00
|
|
|
'MWFunction' => 'includes/MWFunction.php',
|
2010-11-12 07:32:09 +00:00
|
|
|
'MWHttpRequest' => 'includes/HttpFunctions.php',
|
2011-04-11 17:37:09 +00:00
|
|
|
'MWInit' => 'includes/Init.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'MWNamespace' => 'includes/Namespace.php',
|
|
|
|
|
'OldChangesList' => 'includes/ChangesList.php',
|
|
|
|
|
'OutputPage' => 'includes/OutputPage.php',
|
2009-08-17 05:09:36 +00:00
|
|
|
'PageHistory' => 'includes/HistoryPage.php',
|
|
|
|
|
'PageHistoryPager' => 'includes/HistoryPage.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'PageQueryPage' => 'includes/PageQueryPage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Pager' => 'includes/Pager.php',
|
|
|
|
|
'PasswordError' => 'includes/User.php',
|
|
|
|
|
'PatrolLog' => 'includes/PatrolLog.php',
|
2011-04-12 23:02:02 +00:00
|
|
|
'PermissionsError' => 'includes/Exception.php',
|
2010-11-21 14:35:39 +00:00
|
|
|
'PhpHttpRequest' => 'includes/HttpFunctions.php',
|
Implemented the PoolCounter feature and did some general refactoring in the areas that it touched.
* Renamed Article::outputFromWikitext() to Article::getOutputFromWikitext()
* Factored out cascade protection updates
* Removed recently-added Article::tryParserCache(): misnamed, can be done in one line of code in the caller. Deprecated OutputPage::tryParserCache().
* Made some functions public instead of protected when they could be useful from hooks.
* In ParserCache, removed PHP 4-style ampersands
In Article::view():
* Factored out robot policy logic, "redirected from" header, patrol footer, diff page, revdelete header, CSS/JS formatting, footer, namespace header, missing article error
* Removed some variables, renamed some others, fixed incorrect use of empty()
* Used the refactored footer section to do a couple of early returns and unindent a massive if(!$outputDone) block
* Removed fantasy interpretation of $this->getContent()===false in comment
* Don't try the parser cache when ArticleViewHeader specified $outputDone=true
* Move timing hack to getOutputFromWikitext()
* Stop using $wgOut->parserOptions() with save/restore nonsense every time you want to change something in it. This is meant to be OOP.
* Don't overwrite the article text with an error message and then pretend to write it to the cache, that's confusing
2009-07-08 08:12:35 +00:00
|
|
|
'PoolCounter' => 'includes/PoolCounter.php',
|
|
|
|
|
'PoolCounter_Stub' => 'includes/PoolCounter.php',
|
2010-08-27 20:57:32 +00:00
|
|
|
'PoolCounterWork' => 'includes/PoolCounter.php',
|
2009-04-24 01:31:17 +00:00
|
|
|
'Preferences' => 'includes/Preferences.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'PreferencesForm' => 'includes/Preferences.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'PrefixSearch' => 'includes/PrefixSearch.php',
|
|
|
|
|
'ProtectionForm' => 'includes/ProtectionForm.php',
|
|
|
|
|
'QueryPage' => 'includes/QueryPage.php',
|
|
|
|
|
'QuickTemplate' => 'includes/SkinTemplate.php',
|
|
|
|
|
'RawPage' => 'includes/RawPage.php',
|
|
|
|
|
'RCCacheEntry' => 'includes/ChangesList.php',
|
2008-08-18 19:37:44 +00:00
|
|
|
'RdfMetaData' => 'includes/Metadata.php',
|
2011-04-13 14:30:55 +00:00
|
|
|
'ReadOnlyError' => 'includes/Exception.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'RecentChange' => 'includes/RecentChange.php',
|
2011-04-19 15:45:03 +00:00
|
|
|
'RedirectSpecialPage' => 'includes/SpecialPage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'RegexlikeReplacer' => 'includes/StringUtils.php',
|
|
|
|
|
'ReplacementArray' => 'includes/StringUtils.php',
|
|
|
|
|
'Replacer' => 'includes/StringUtils.php',
|
2011-04-03 10:41:14 +00:00
|
|
|
'RequestContext' => 'includes/RequestContext.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ReverseChronologicalPager' => 'includes/Pager.php',
|
|
|
|
|
'Revision' => 'includes/Revision.php',
|
|
|
|
|
'RSSFeed' => 'includes/Feed.php',
|
|
|
|
|
'Sanitizer' => 'includes/Sanitizer.php',
|
|
|
|
|
'SiteConfiguration' => 'includes/SiteConfiguration.php',
|
|
|
|
|
'SiteStats' => 'includes/SiteStats.php',
|
2009-08-02 19:35:17 +00:00
|
|
|
'SiteStatsInit' => 'includes/SiteStats.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SiteStatsUpdate' => 'includes/SiteStats.php',
|
|
|
|
|
'Skin' => 'includes/Skin.php',
|
2011-02-04 04:18:05 +00:00
|
|
|
'SkinLegacy' => 'includes/SkinLegacy.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SkinTemplate' => 'includes/SkinTemplate.php',
|
2011-04-19 15:45:03 +00:00
|
|
|
'SpecialCreateAccount' => 'includes/SpecialPage.php',
|
|
|
|
|
'SpecialListAdmins' => 'includes/SpecialPage.php',
|
|
|
|
|
'SpecialListBots' => 'includes/SpecialPage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialMycontributions' => 'includes/SpecialPage.php',
|
|
|
|
|
'SpecialMypage' => 'includes/SpecialPage.php',
|
|
|
|
|
'SpecialMytalk' => 'includes/SpecialPage.php',
|
|
|
|
|
'SpecialPage' => 'includes/SpecialPage.php',
|
2011-04-17 11:31:11 +00:00
|
|
|
'SpecialPageFactory' => 'includes/SpecialPageFactory.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialRedirectToSpecial' => 'includes/SpecialPage.php',
|
2010-02-05 03:36:04 +00:00
|
|
|
'SquidPurgeClient' => 'includes/SquidPurgeClient.php',
|
|
|
|
|
'SquidPurgeClientPool' => 'includes/SquidPurgeClient.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Status' => 'includes/Status.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'StringUtils' => 'includes/StringUtils.php',
|
2010-01-27 07:00:07 +00:00
|
|
|
'StubContLang' => 'includes/StubObject.php',
|
2010-01-22 04:37:23 +00:00
|
|
|
'StubObject' => 'includes/StubObject.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'StubUserLang' => 'includes/StubObject.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'TablePager' => 'includes/Pager.php',
|
|
|
|
|
'Title' => 'includes/Title.php',
|
2008-07-29 14:53:10 +00:00
|
|
|
'TitleArray' => 'includes/TitleArray.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'TitleArrayFromResult' => 'includes/TitleArray.php',
|
2011-04-18 22:29:23 +00:00
|
|
|
'ThrottledError' => 'includes/Exception.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'UnlistedSpecialPage' => 'includes/SpecialPage.php',
|
2011-01-17 14:02:22 +00:00
|
|
|
'UppercaseCollation' => 'includes/Collation.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'User' => 'includes/User.php',
|
2008-07-29 14:53:10 +00:00
|
|
|
'UserArray' => 'includes/UserArray.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'UserArrayFromResult' => 'includes/UserArray.php',
|
2011-04-13 14:30:55 +00:00
|
|
|
'UserBlockedError' => 'includes/Exception.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'UserMailer' => 'includes/UserMailer.php',
|
|
|
|
|
'UserRightsProxy' => 'includes/UserRightsProxy.php',
|
2011-01-01 16:58:00 +00:00
|
|
|
'ViewCountUpdate' => 'includes/ViewCountUpdate.php',
|
2009-04-15 03:35:59 +00:00
|
|
|
'WantedQueryPage' => 'includes/QueryPage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'WatchedItem' => 'includes/WatchedItem.php',
|
|
|
|
|
'WebRequest' => 'includes/WebRequest.php',
|
2010-07-27 20:38:36 +00:00
|
|
|
'WebRequestUpload' => 'includes/WebRequest.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'WebResponse' => 'includes/WebResponse.php',
|
|
|
|
|
'WikiError' => 'includes/WikiError.php',
|
|
|
|
|
'WikiErrorMsg' => 'includes/WikiError.php',
|
|
|
|
|
'WikiExporter' => 'includes/Export.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'WikiImporter' => 'includes/Import.php',
|
|
|
|
|
'WikiRevision' => 'includes/Import.php',
|
2009-03-26 13:31:30 +00:00
|
|
|
'WikiMap' => 'includes/WikiMap.php',
|
2009-06-12 19:24:03 +00:00
|
|
|
'WikiReference' => 'includes/WikiMap.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'WikiXmlError' => 'includes/WikiError.php',
|
|
|
|
|
'Xml' => 'includes/Xml.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'XmlDumpWriter' => 'includes/Export.php',
|
* Introduced Xml::encodeJsCall(), to replace the awkward repetitive code that was doing the same thing throughout the resource loader with varying degrees of security and correctness.
* Modified Xml::encodeJsVar() to allow it to pass through JS expressions without encoding, using a special object.
* In ResourceLoader::makeModuleResponse(), renamed $messages to $messagesBlob to make it clear that it's JSON-encoded, not an array.
* Fixed MessageBlobStore to store {} for an empty message array instead of [].
* In ResourceLoader::makeMessageSetScript(), fixed call to non-existent function mediaWiki.msg.set.
* For security, changed the calling convention of makeMessageSetScript() and makeLoaderImplementScript() to require explicit object construction of XmlJsCode() before interpreting their input as JS code.
* Documented several ResourceLoader static functions.
* In ResourceLoaderWikiModule, for readability, reduced the indenting level by flipping some if blocks and adding continue statements.
* In makeCustomLoaderScript(), allow non-numeric $version. The only caller I can find is already sending a non-numeric $version, presumably it was broken. Luckily there aren't any loader scripts in existence, I had to make one to test it.
* wfGetDb -> wfGetDB
* Added an extra line break in the startup module output, for readability.
* In ResourceLoaderStartUpModule::getModuleRegistrations(), fixed another assignment expression
2010-11-04 07:53:37 +00:00
|
|
|
'XmlJsCode' => 'includes/Xml.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'XmlSelect' => 'includes/Xml.php',
|
|
|
|
|
'XmlTypeCheck' => 'includes/XmlTypeCheck.php',
|
|
|
|
|
'ZhClient' => 'includes/ZhClient.php',
|
2011-02-25 04:51:17 +00:00
|
|
|
'ZipDirectoryReader' => 'includes/ZipDirectoryReader.php',
|
2007-04-20 12:31:36 +00:00
|
|
|
|
2011-04-14 10:38:29 +00:00
|
|
|
# includes/actions
|
|
|
|
|
'CreditsAction' => 'includes/actions/CreditsAction.php',
|
|
|
|
|
'PurgeAction' => 'includes/actions/PurgeAction.php',
|
|
|
|
|
'UnwatchAction' => 'includes/actions/WatchAction.php',
|
|
|
|
|
'WatchAction' => 'includes/actions/WatchAction.php',
|
|
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/api
|
|
|
|
|
'ApiBase' => 'includes/api/ApiBase.php',
|
|
|
|
|
'ApiBlock' => 'includes/api/ApiBlock.php',
|
2011-05-01 21:56:02 +00:00
|
|
|
'ApiComparePages' => 'includes/api/ApiComparePages.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiDelete' => 'includes/api/ApiDelete.php',
|
2008-09-25 20:50:50 +00:00
|
|
|
'ApiDisabled' => 'includes/api/ApiDisabled.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiEditPage' => 'includes/api/ApiEditPage.php',
|
|
|
|
|
'ApiEmailUser' => 'includes/api/ApiEmailUser.php',
|
|
|
|
|
'ApiExpandTemplates' => 'includes/api/ApiExpandTemplates.php',
|
|
|
|
|
'ApiFeedWatchlist' => 'includes/api/ApiFeedWatchlist.php',
|
2011-03-05 17:23:35 +00:00
|
|
|
'ApiFileRevert' => 'includes/api/ApiFileRevert.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiFormatBase' => 'includes/api/ApiFormatBase.php',
|
|
|
|
|
'ApiFormatDbg' => 'includes/api/ApiFormatDbg.php',
|
2010-08-09 00:19:55 +00:00
|
|
|
'ApiFormatDump' => 'includes/api/ApiFormatDump.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiFormatFeedWrapper' => 'includes/api/ApiFormatBase.php',
|
|
|
|
|
'ApiFormatJson' => 'includes/api/ApiFormatJson.php',
|
|
|
|
|
'ApiFormatPhp' => 'includes/api/ApiFormatPhp.php',
|
2009-02-02 20:07:33 +00:00
|
|
|
'ApiFormatRaw' => 'includes/api/ApiFormatRaw.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiFormatTxt' => 'includes/api/ApiFormatTxt.php',
|
|
|
|
|
'ApiFormatWddx' => 'includes/api/ApiFormatWddx.php',
|
|
|
|
|
'ApiFormatXml' => 'includes/api/ApiFormatXml.php',
|
2011-01-10 22:13:01 +00:00
|
|
|
'ApiFormatXmlRsd' => 'includes/api/ApiRsd.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiFormatYaml' => 'includes/api/ApiFormatYaml.php',
|
|
|
|
|
'ApiHelp' => 'includes/api/ApiHelp.php',
|
2009-02-04 20:11:27 +00:00
|
|
|
'ApiImport' => 'includes/api/ApiImport.php',
|
|
|
|
|
'ApiImportReporter' => 'includes/api/ApiImport.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiLogin' => 'includes/api/ApiLogin.php',
|
|
|
|
|
'ApiLogout' => 'includes/api/ApiLogout.php',
|
|
|
|
|
'ApiMain' => 'includes/api/ApiMain.php',
|
|
|
|
|
'ApiMove' => 'includes/api/ApiMove.php',
|
|
|
|
|
'ApiOpenSearch' => 'includes/api/ApiOpenSearch.php',
|
|
|
|
|
'ApiPageSet' => 'includes/api/ApiPageSet.php',
|
|
|
|
|
'ApiParamInfo' => 'includes/api/ApiParamInfo.php',
|
|
|
|
|
'ApiParse' => 'includes/api/ApiParse.php',
|
2008-09-04 15:17:51 +00:00
|
|
|
'ApiPatrol' => 'includes/api/ApiPatrol.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiProtect' => 'includes/api/ApiProtect.php',
|
2008-09-04 21:53:43 +00:00
|
|
|
'ApiPurge' => 'includes/api/ApiPurge.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQuery' => 'includes/api/ApiQuery.php',
|
|
|
|
|
'ApiQueryAllCategories' => 'includes/api/ApiQueryAllCategories.php',
|
|
|
|
|
'ApiQueryAllimages' => 'includes/api/ApiQueryAllimages.php',
|
|
|
|
|
'ApiQueryAllLinks' => 'includes/api/ApiQueryAllLinks.php',
|
|
|
|
|
'ApiQueryAllmessages' => 'includes/api/ApiQueryAllmessages.php',
|
|
|
|
|
'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ApiQueryAllUsers' => 'includes/api/ApiQueryAllUsers.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQueryBacklinks' => 'includes/api/ApiQueryBacklinks.php',
|
|
|
|
|
'ApiQueryBase' => 'includes/api/ApiQueryBase.php',
|
|
|
|
|
'ApiQueryBlocks' => 'includes/api/ApiQueryBlocks.php',
|
|
|
|
|
'ApiQueryCategories' => 'includes/api/ApiQueryCategories.php',
|
|
|
|
|
'ApiQueryCategoryInfo' => 'includes/api/ApiQueryCategoryInfo.php',
|
|
|
|
|
'ApiQueryCategoryMembers' => 'includes/api/ApiQueryCategoryMembers.php',
|
|
|
|
|
'ApiQueryContributions' => 'includes/api/ApiQueryUserContributions.php',
|
|
|
|
|
'ApiQueryDeletedrevs' => 'includes/api/ApiQueryDeletedrevs.php',
|
2008-09-25 20:50:50 +00:00
|
|
|
'ApiQueryDisabled' => 'includes/api/ApiQueryDisabled.php',
|
2008-09-27 11:42:28 +00:00
|
|
|
'ApiQueryDuplicateFiles' => 'includes/api/ApiQueryDuplicateFiles.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQueryExternalLinks' => 'includes/api/ApiQueryExternalLinks.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ApiQueryExtLinksUsage' => 'includes/api/ApiQueryExtLinksUsage.php',
|
2011-01-11 00:55:20 +00:00
|
|
|
'ApiQueryFilearchive' => 'includes/api/ApiQueryFilearchive.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQueryGeneratorBase' => 'includes/api/ApiQueryBase.php',
|
|
|
|
|
'ApiQueryImageInfo' => 'includes/api/ApiQueryImageInfo.php',
|
|
|
|
|
'ApiQueryImages' => 'includes/api/ApiQueryImages.php',
|
|
|
|
|
'ApiQueryInfo' => 'includes/api/ApiQueryInfo.php',
|
2010-05-25 19:50:20 +00:00
|
|
|
'ApiQueryIWBacklinks' => 'includes/api/ApiQueryIWBacklinks.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ApiQueryIWLinks' => 'includes/api/ApiQueryIWLinks.php',
|
2011-05-14 11:29:45 +00:00
|
|
|
'ApiQueryLangBacklinks' => 'includes/api/ApiQueryLangBacklinks.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQueryLangLinks' => 'includes/api/ApiQueryLangLinks.php',
|
|
|
|
|
'ApiQueryLinks' => 'includes/api/ApiQueryLinks.php',
|
|
|
|
|
'ApiQueryLogEvents' => 'includes/api/ApiQueryLogEvents.php',
|
2010-08-07 18:50:23 +00:00
|
|
|
'ApiQueryPageProps' => 'includes/api/ApiQueryPageProps.php',
|
2009-02-13 21:34:46 +00:00
|
|
|
'ApiQueryProtectedTitles' => 'includes/api/ApiQueryProtectedTitles.php',
|
2010-12-22 20:35:37 +00:00
|
|
|
'ApiQueryQueryPage' => 'includes/api/ApiQueryQueryPage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQueryRandom' => 'includes/api/ApiQueryRandom.php',
|
2010-05-30 14:48:30 +00:00
|
|
|
'ApiQueryRecentChanges' => 'includes/api/ApiQueryRecentChanges.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQueryRevisions' => 'includes/api/ApiQueryRevisions.php',
|
|
|
|
|
'ApiQuerySearch' => 'includes/api/ApiQuerySearch.php',
|
|
|
|
|
'ApiQuerySiteinfo' => 'includes/api/ApiQuerySiteinfo.php',
|
2010-11-16 06:57:46 +00:00
|
|
|
'ApiQueryStashImageInfo' => 'includes/api/ApiQueryStashImageInfo.php',
|
2009-11-01 10:42:41 +00:00
|
|
|
'ApiQueryTags' => 'includes/api/ApiQueryTags.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQueryUserInfo' => 'includes/api/ApiQueryUserInfo.php',
|
|
|
|
|
'ApiQueryUsers' => 'includes/api/ApiQueryUsers.php',
|
|
|
|
|
'ApiQueryWatchlist' => 'includes/api/ApiQueryWatchlist.php',
|
2008-10-04 13:33:44 +00:00
|
|
|
'ApiQueryWatchlistRaw' => 'includes/api/ApiQueryWatchlistRaw.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiResult' => 'includes/api/ApiResult.php',
|
|
|
|
|
'ApiRollback' => 'includes/api/ApiRollback.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ApiRsd' => 'includes/api/ApiRsd.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiUnblock' => 'includes/api/ApiUnblock.php',
|
|
|
|
|
'ApiUndelete' => 'includes/api/ApiUndelete.php',
|
here it is ... the upload-api, script-server, js2 (javascript phase2) branch merge 1st attempt.
Here is a short overview of changes and associated default configuration variables (most everything is off by default) also see ~soon to be updated~: http://www.mediawiki.org/wiki/Media_Projects_Overview
= Upload Improvements =
==Upload API ==
* Based on the early work of Bryan Tong and others it adds the upload option to the api.
* We rewrite Special:Upload page to include use the new refactoring
* Added in token checks in both the SpecialUpload.php page so avoids DOS / xss copy-by-url JavaScript based cross site POST file submissions
== Copy by URL==
$wgAllowCopyUploads = false;
* http class rewrite includes a new http background download see: includes/HttpFunctions.php
* spins off a php process that calls: maintenance/http_session_download.php
* pushes updates to the session and gives the user a progress bar on http copy uploads from other server progress (using js2 upload interface) (if not using the js2 upload interface it does the request in-place but the download is limited to the php ini timeout time)
== Firefogg ==
* Firefogg enables resumable upload by chunks
* progress indicators and conditional invokation (js2 system)
* and of-course client side transcoding.
= Script Server =
$wgEnableScriptLoader = false;
* off by default if $wgEnableScriptLoader is turned on script files are grouped, gziped, cached etc.
for more info see: http://www.mediawiki.org/wiki/Extension:ScriptLoader
* Includes some early skin js include fixes (skin/script system still lots of love)
* Includes a "javascript class autoloader" this is packaged into mwEmbed so that the mwEmbed library can work in stand alone mode (while retaining localization and script serving) (one such application is the make page for firefogg.org : http://www.firefogg.org/make/index.html )
* The file that contains the autojavascript loading classes is: js2/php/jsAutoloadLocalClasses.php
* One can use this auto class loading dependency system with extensions and add-ons but I need to better document that.
= js2 system / mwEmbed=
$wgEnableJS2system = false
* includes initial rewrite towards more jquery based javascript code
* especially for the Special:Upload page.
* Also the edit page include support for the "add-media-wizard"
* includes dependency loader for javascript that optionally takes advantage of the script-loader
* remote embedding of javascript interfaces (like embedding video, or commons media searching)
* $wgDebugJavaScript = false; .. .this variable lets you always get "always fresh javascript". When used with the script-loader it does not minify the script-loader output.
= mwEmbed =
* Will commit a separate patch to oggHandler that conditionally outputs <video tag> to use the new javascript video player.
** mv_embed player includes: play-head, volume control, remote embedding, oggz-chop support across plugins.
* add-media-wizard adds easy inserts of media to pages (with import)
== jQuery==
* we include a base install of jQuery, jQuery ui and some plugins.
* all the javascript classes are in the scriptloader so its easy to load any set of jquery ui components that you may need using the script-server. You get a callback so you can then execute js with dependencies loaded.
== other stuff ==
there is a bit more code in js2 that pertains to sequence editing, timed text display and basic image editing. We include a base import of pixastic-lib & pixastic-editor... will work with the pixastic developer to try and ensure upstream compatibility on our usage of the library for in-browser photo and sequence manipulation.
2009-07-14 23:52:14 +00:00
|
|
|
'ApiUpload' => 'includes/api/ApiUpload.php',
|
2011-01-11 00:55:20 +00:00
|
|
|
'ApiUserrights' => 'includes/api/ApiUserrights.php',
|
2008-08-21 15:44:13 +00:00
|
|
|
'ApiWatch' => 'includes/api/ApiWatch.php',
|
2011-05-16 21:04:55 +00:00
|
|
|
'UsageException' => 'includes/api/ApiMain.php',
|
2009-09-10 14:33:25 +00:00
|
|
|
|
2011-04-25 21:33:38 +00:00
|
|
|
# includes/cache
|
|
|
|
|
'CacheDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'ConstantDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'DependencyWrapper' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'FileDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'GlobalDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'HTMLCacheUpdate' => 'includes/cache/HTMLCacheUpdate.php',
|
|
|
|
|
'HTMLCacheUpdateJob' => 'includes/cache/HTMLCacheUpdate.php',
|
|
|
|
|
'HTMLFileCache' => 'includes/cache/HTMLFileCache.php',
|
2011-04-25 21:38:48 +00:00
|
|
|
'LinkBatch' => 'includes/cache/LinkBatch.php',
|
|
|
|
|
'LinkCache' => 'includes/cache/LinkCache.php',
|
|
|
|
|
'MessageCache' => 'includes/cache/MessageCache.php',
|
|
|
|
|
'SquidUpdate' => 'includes/cache/SquidUpdate.php',
|
2011-04-25 21:33:38 +00:00
|
|
|
'TitleDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'TitleListDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
|
2011-05-16 21:04:55 +00:00
|
|
|
# includes/conf
|
|
|
|
|
'Conf' => 'includes/conf/Conf.php',
|
|
|
|
|
'DatabaseConf' => 'includes/conf/DatabaseConf.php',
|
|
|
|
|
'DefaultSettings' => 'includes/conf/DefaultSettings.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/db
|
2011-05-25 17:06:04 +00:00
|
|
|
'Blob' => 'includes/db/DatabaseUtility.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ChronologyProtector' => 'includes/db/LBFactory.php',
|
2010-12-28 00:44:16 +00:00
|
|
|
'CloneDatabase' => 'includes/db/CloneDatabase.php',
|
2009-06-15 18:39:41 +00:00
|
|
|
'Database' => 'includes/db/DatabaseMysql.php',
|
2009-06-12 17:59:04 +00:00
|
|
|
'DatabaseBase' => 'includes/db/Database.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'DatabaseIbm_db2' => 'includes/db/DatabaseIbm_db2.php',
|
2010-08-06 23:44:00 +00:00
|
|
|
'DatabaseMssql' => 'includes/db/DatabaseMssql.php',
|
2009-06-15 18:39:41 +00:00
|
|
|
'DatabaseMysql' => 'includes/db/DatabaseMysql.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'DatabaseOracle' => 'includes/db/DatabaseOracle.php',
|
|
|
|
|
'DatabasePostgres' => 'includes/db/DatabasePostgres.php',
|
|
|
|
|
'DatabaseSqlite' => 'includes/db/DatabaseSqlite.php',
|
2010-01-22 21:30:23 +00:00
|
|
|
'DatabaseSqliteStandalone' => 'includes/db/DatabaseSqlite.php',
|
2010-09-08 17:48:11 +00:00
|
|
|
'DatabaseType' => 'includes/db/Database.php',
|
2011-05-25 17:03:15 +00:00
|
|
|
'DBConnectionError' => 'includes/db/DatabaseError.php',
|
|
|
|
|
'DBError' => 'includes/db/DatabaseError.php',
|
2011-05-25 17:06:04 +00:00
|
|
|
'DBObject' => 'includes/db/DatabaseUtility.php',
|
2011-05-25 17:03:15 +00:00
|
|
|
'DBQueryError' => 'includes/db/DatabaseError.php',
|
|
|
|
|
'DBUnexpectedError' => 'includes/db/DatabaseError.php',
|
2011-05-25 17:06:04 +00:00
|
|
|
'FakeResultWrapper' => 'includes/db/DatabaseUtility.php',
|
|
|
|
|
'Field' => 'includes/db/DatabaseUtility.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'IBM_DB2Blob' => 'includes/db/DatabaseIbm_db2.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'IBM_DB2Field' => 'includes/db/DatabaseIbm_db2.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'LBFactory' => 'includes/db/LBFactory.php',
|
|
|
|
|
'LBFactory_Multi' => 'includes/db/LBFactory_Multi.php',
|
|
|
|
|
'LBFactory_Simple' => 'includes/db/LBFactory.php',
|
* Fixed a bug causing the installer to ignore the "engine" and "charset" settings when installing a MySQL database.
* Fixed a bug causing the engine and charset settings to not be properly preserved when adding new tables on upgrade.
* Fixed total breakage of SQLite upgrade, by reusing the administrative connection to the SQLite database instead of creating a new one when wfGetDB() is called. Added LBFactory_Single to support this.
* Introduced a "schema variable" concept to DatabaseBase to avoid the use of globals for communication between the installer and the Database. Removed a lot of old global variable names from Database::replaceVars(), most were only added on a whim and were never used.
* Introduced DatabaseInstaller::getSchemaVars(), to allow schema variables to be supplied by the DatabaseInstaller child classes.
* Removed messages config-mysql-egine-mismatch [sic] and config-mysql-charset-mismatch. In the old installer it was possible for users to request a certain character set for an upgrade, but in the new installer the question is never asked. So these warnings were shown whenever a non-default character set or engine was used in the old database.
* In MysqlInstaller::preUpgrade(), fixed the incorrect strings used to identify the MySQL character sets: mysql5 instead of utf8 and mysql5-binary instead of binary.
* On install, initialise the site_stats table, using code copied from the old installer. Unlike the old installer, use SiteStats to increment the user count when the initial user is added.
* Fixed several instances of inappropriate call-by-reference.
* Replaced call_user_func_array() with call_user_func() where possible, it is shorter and simpler.
* Moved the caching boilerplate for DatabaseInstaller::getConnection() to the base class, and have the derived classes override an uncached function openConnection() instead. Updates r80892.
* In MysqlInstaller::getLocalSettings(), escape PHP strings correctly with LocalSettingsGenerator::escapePhpString().
* Reduce timeout for checks in dirIsExecutable() to 3 seconds, so that it doesn't take 30s to run when apache is in single-threaded mode for debugging.
* MySQL and SQLite have been tested and they appear to work. PostgreSQL upgrade is totally broken, apparently it was like that before I started. The Oracle code is untested.
2011-01-25 07:37:48 +00:00
|
|
|
'LBFactory_Single' => 'includes/db/LBFactory_Single.php',
|
2011-05-25 17:06:04 +00:00
|
|
|
'LikeMatch' => 'includes/db/DatabaseUtility.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'LoadBalancer' => 'includes/db/LoadBalancer.php',
|
* Fixed a bug causing the installer to ignore the "engine" and "charset" settings when installing a MySQL database.
* Fixed a bug causing the engine and charset settings to not be properly preserved when adding new tables on upgrade.
* Fixed total breakage of SQLite upgrade, by reusing the administrative connection to the SQLite database instead of creating a new one when wfGetDB() is called. Added LBFactory_Single to support this.
* Introduced a "schema variable" concept to DatabaseBase to avoid the use of globals for communication between the installer and the Database. Removed a lot of old global variable names from Database::replaceVars(), most were only added on a whim and were never used.
* Introduced DatabaseInstaller::getSchemaVars(), to allow schema variables to be supplied by the DatabaseInstaller child classes.
* Removed messages config-mysql-egine-mismatch [sic] and config-mysql-charset-mismatch. In the old installer it was possible for users to request a certain character set for an upgrade, but in the new installer the question is never asked. So these warnings were shown whenever a non-default character set or engine was used in the old database.
* In MysqlInstaller::preUpgrade(), fixed the incorrect strings used to identify the MySQL character sets: mysql5 instead of utf8 and mysql5-binary instead of binary.
* On install, initialise the site_stats table, using code copied from the old installer. Unlike the old installer, use SiteStats to increment the user count when the initial user is added.
* Fixed several instances of inappropriate call-by-reference.
* Replaced call_user_func_array() with call_user_func() where possible, it is shorter and simpler.
* Moved the caching boilerplate for DatabaseInstaller::getConnection() to the base class, and have the derived classes override an uncached function openConnection() instead. Updates r80892.
* In MysqlInstaller::getLocalSettings(), escape PHP strings correctly with LocalSettingsGenerator::escapePhpString().
* Reduce timeout for checks in dirIsExecutable() to 3 seconds, so that it doesn't take 30s to run when apache is in single-threaded mode for debugging.
* MySQL and SQLite have been tested and they appear to work. PostgreSQL upgrade is totally broken, apparently it was like that before I started. The Oracle code is untested.
2011-01-25 07:37:48 +00:00
|
|
|
'LoadBalancer_Single' => 'includes/db/LBFactory_Single.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'LoadMonitor' => 'includes/db/LoadMonitor.php',
|
|
|
|
|
'LoadMonitor_MySQL' => 'includes/db/LoadMonitor.php',
|
2010-11-21 19:56:51 +00:00
|
|
|
'MySQLField' => 'includes/db/DatabaseMysql.php',
|
2009-06-15 18:39:41 +00:00
|
|
|
'MySQLMasterPos' => 'includes/db/DatabaseMysql.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'ORAField' => 'includes/db/DatabaseOracle.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ORAResult' => 'includes/db/DatabaseOracle.php',
|
|
|
|
|
'PostgresField' => 'includes/db/DatabasePostgres.php',
|
2011-05-25 17:06:04 +00:00
|
|
|
'ResultWrapper' => 'includes/db/DatabaseUtility.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SQLiteField' => 'includes/db/DatabaseSqlite.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2008-08-25 20:19:00 +00:00
|
|
|
# includes/diff
|
2011-02-20 16:28:13 +00:00
|
|
|
'_DiffEngine' => 'includes/diff/DairikiDiff.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'_DiffOp' => 'includes/diff/DairikiDiff.php',
|
2011-02-20 16:28:13 +00:00
|
|
|
'_DiffOp_Add' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'_DiffOp_Change' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'_DiffOp_Copy' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'_DiffOp_Delete' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'_HWLDF_WordAccumulator' => 'includes/diff/DairikiDiff.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ArrayDiffFormatter' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'Diff' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'DifferenceEngine' => 'includes/diff/DifferenceEngine.php',
|
|
|
|
|
'DiffFormatter' => 'includes/diff/DairikiDiff.php',
|
2011-02-20 16:28:13 +00:00
|
|
|
'MappedDiff' => 'includes/diff/DairikiDiff.php',
|
2010-11-07 16:28:11 +00:00
|
|
|
'RangeDifference' => 'includes/diff/WikiDiff3.php',
|
2011-02-20 16:28:13 +00:00
|
|
|
'TableDiffFormatter' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'UnifiedDiffFormatter' => 'includes/diff/DairikiDiff.php',
|
2010-11-07 16:28:11 +00:00
|
|
|
'WikiDiff3' => 'includes/diff/WikiDiff3.php',
|
2011-02-20 16:28:13 +00:00
|
|
|
'WordLevelDiff' => 'includes/diff/DairikiDiff.php',
|
2008-09-14 19:51:25 +00:00
|
|
|
|
2011-04-17 23:42:22 +00:00
|
|
|
# includes/extauth
|
|
|
|
|
'ExternalUser_Hardcoded' => 'includes/extauth/Hardcoded.php',
|
|
|
|
|
'ExternalUser_MediaWiki' => 'includes/extauth/MediaWiki.php',
|
|
|
|
|
'ExternalUser_vB' => 'includes/extauth/vB.php',
|
|
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/filerepo
|
|
|
|
|
'ArchivedFile' => 'includes/filerepo/ArchivedFile.php',
|
|
|
|
|
'File' => 'includes/filerepo/File.php',
|
|
|
|
|
'FileRepo' => 'includes/filerepo/FileRepo.php',
|
|
|
|
|
'FileRepoStatus' => 'includes/filerepo/FileRepoStatus.php',
|
|
|
|
|
'ForeignAPIFile' => 'includes/filerepo/ForeignAPIFile.php',
|
|
|
|
|
'ForeignAPIRepo' => 'includes/filerepo/ForeignAPIRepo.php',
|
|
|
|
|
'ForeignDBFile' => 'includes/filerepo/ForeignDBFile.php',
|
|
|
|
|
'ForeignDBRepo' => 'includes/filerepo/ForeignDBRepo.php',
|
|
|
|
|
'ForeignDBViaLBRepo' => 'includes/filerepo/ForeignDBViaLBRepo.php',
|
|
|
|
|
'FSRepo' => 'includes/filerepo/FSRepo.php',
|
|
|
|
|
'LocalFile' => 'includes/filerepo/LocalFile.php',
|
|
|
|
|
'LocalFileDeleteBatch' => 'includes/filerepo/LocalFile.php',
|
|
|
|
|
'LocalFileMoveBatch' => 'includes/filerepo/LocalFile.php',
|
|
|
|
|
'LocalFileRestoreBatch' => 'includes/filerepo/LocalFile.php',
|
|
|
|
|
'LocalRepo' => 'includes/filerepo/LocalRepo.php',
|
|
|
|
|
'OldLocalFile' => 'includes/filerepo/OldLocalFile.php',
|
|
|
|
|
'RepoGroup' => 'includes/filerepo/RepoGroup.php',
|
|
|
|
|
'UnregisteredLocalFile' => 'includes/filerepo/UnregisteredLocalFile.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
# includes/installer
|
2010-06-23 01:08:34 +00:00
|
|
|
'CliInstaller' => 'includes/installer/CliInstaller.php',
|
2010-07-20 09:30:33 +00:00
|
|
|
'DatabaseInstaller' => 'includes/installer/DatabaseInstaller.php',
|
2010-07-20 22:28:50 +00:00
|
|
|
'DatabaseUpdater' => 'includes/installer/DatabaseUpdater.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'Ibm_db2Installer' => 'includes/installer/Ibm_db2Installer.php',
|
|
|
|
|
'Ibm_db2Updater' => 'includes/installer/Ibm_db2Updater.php',
|
|
|
|
|
'Installer' => 'includes/installer/Installer.php',
|
2010-05-07 12:25:01 +00:00
|
|
|
'LBFactory_InstallerFake' => 'includes/installer/Installer.php',
|
|
|
|
|
'LocalSettingsGenerator' => 'includes/installer/LocalSettingsGenerator.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'MysqlInstaller' => 'includes/installer/MysqlInstaller.php',
|
|
|
|
|
'MysqlUpdater' => 'includes/installer/MysqlUpdater.php',
|
|
|
|
|
'OracleInstaller' => 'includes/installer/OracleInstaller.php',
|
|
|
|
|
'OracleUpdater' => 'includes/installer/OracleUpdater.php',
|
|
|
|
|
'PhpRefCallBugTester' => 'includes/installer/PhpBugTests.php',
|
|
|
|
|
'PhpXmlBugTester' => 'includes/installer/PhpBugTests.php',
|
|
|
|
|
'PostgresInstaller' => 'includes/installer/PostgresInstaller.php',
|
|
|
|
|
'PostgresUpdater' => 'includes/installer/PostgresUpdater.php',
|
|
|
|
|
'SqliteInstaller' => 'includes/installer/SqliteInstaller.php',
|
|
|
|
|
'SqliteUpdater' => 'includes/installer/SqliteUpdater.php',
|
2010-05-07 12:25:01 +00:00
|
|
|
'WebInstaller' => 'includes/installer/WebInstaller.php',
|
The beginnings of HipHop compiled mode support. It works now for parser cache hits.
* Work around HipHop issue 314 (volatile broken) and issue 308 (no compilation detection) by adding some large and ugly compilation detection code to WebStart.php and doMaintenance.php.
* Provide an MW_COMPILED constant which can be used to detect compiled mode throughout the codebase.
* Introduced wfIsHipHop(), which detects either compiled or interpreted mode. Used this to work around unusual eval() return value in eval.php.
* Work around lack of ini_get() in Maintenance.php, by duplicating wfIsHipHop().
* In Maintenance::shouldExecute(), accept "include" as an inclusion function name, since all kinds of inclusion give this string in HipHop.
* Introduced new class MWInit, which provides some static functions in the pre-autoloader environment.
* Introduced MWInit::compiledPath(), which provides a relative path for invoking a compiled file, and MWInit::interpretedPath(), which provides an absolute path for interpreting a PHP file. Used these new functions in the appropriate places.
* When we are running compiled code, don't include files which would generate duplicate class, function or constant definitions. Documented the new requirements on the contents of Defines.php and UtfNormalDefines.php.
* In HipHop compiled mode, it's not possible to have executable code in the same file as a class definition.
** Moved MimeMagic initialisation to the constructor.
** Moved Namespace.php global variable initialisation to Setup.php.
** Moved MemcachedSessions.php initialisation to the caller in GlobalFunctions.php.
** Moved Sanitizer.php constants and global variables to static class members. Introduced an accessor function for the attribs regex, as a new place to put code formerly at file level.
** Moved Language.php initialisation of $wgLanguageNames to Language::getLanguageNames(). Removed the global variable, marked "private" since forever.
* In two places: don't use error_log() with type=3 to append to a file, HipHop doesn't support it. Use file_put_contents() with FILE_APPEND instead.
* Work around the terrible breakage of class_exists() by using MWInit::classExists() instead in various places. In WebInstaller::getPageByName(), the class_exists() was marked with a fixme comment already, so I replaced it with an autoloader solution.
2011-04-04 12:59:55 +00:00
|
|
|
'WebInstaller_Complete' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Copying' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_DBConnect' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_DBSettings' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Document' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_ExistingWiki' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Install' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Language' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Name' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Options' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Readme' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_ReleaseNotes' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Restart' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Upgrade' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_UpgradeDoc' => 'includes/installer/WebInstallerPage.php',
|
|
|
|
|
'WebInstaller_Welcome' => 'includes/installer/WebInstallerPage.php',
|
2010-05-07 12:25:01 +00:00
|
|
|
'WebInstallerOutput' => 'includes/installer/WebInstallerOutput.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'WebInstallerPage' => 'includes/installer/WebInstallerPage.php',
|
2010-05-07 12:25:01 +00:00
|
|
|
|
2010-06-17 22:28:06 +00:00
|
|
|
# includes/job
|
|
|
|
|
'DoubleRedirectJob' => 'includes/job/DoubleRedirectJob.php',
|
|
|
|
|
'EmaillingJob' => 'includes/job/EmaillingJob.php',
|
|
|
|
|
'EnotifNotifyJob' => 'includes/job/EnotifNotifyJob.php',
|
|
|
|
|
'Job' => 'includes/job/JobQueue.php',
|
|
|
|
|
'RefreshLinksJob' => 'includes/job/RefreshLinksJob.php',
|
|
|
|
|
'RefreshLinksJob2' => 'includes/job/RefreshLinksJob.php',
|
|
|
|
|
'UploadFromUrlJob' => 'includes/job/UploadFromUrlJob.php',
|
|
|
|
|
|
2011-04-17 23:42:22 +00:00
|
|
|
# includes/json
|
|
|
|
|
'FormatJson' => 'includes/json/FormatJson.php',
|
|
|
|
|
'Services_JSON' => 'includes/json/Services_JSON.php',
|
|
|
|
|
'Services_JSON_Error' => 'includes/json/Services_JSON.php',
|
|
|
|
|
|
2010-08-26 23:22:17 +00:00
|
|
|
# includes/libs
|
2011-04-17 23:42:22 +00:00
|
|
|
'CSSJanus' => 'includes/libs/CSSJanus.php',
|
|
|
|
|
'CSSMin' => 'includes/libs/CSSMin.php',
|
2010-08-26 23:31:00 +00:00
|
|
|
'IEContentAnalyzer' => 'includes/libs/IEContentAnalyzer.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'JavaScriptMinifier' => 'includes/libs/JavaScriptMinifier.php',
|
2010-12-23 21:49:01 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/media
|
|
|
|
|
'BitmapHandler' => 'includes/media/Bitmap.php',
|
2008-11-06 20:59:34 +00:00
|
|
|
'BitmapHandler_ClientOnly' => 'includes/media/Bitmap_ClientOnly.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'BitmapMetadataHandler' => 'includes/media/BitmapMetadataHandler.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'BmpHandler' => 'includes/media/BMP.php',
|
|
|
|
|
'DjVuHandler' => 'includes/media/DjVu.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'Exif' => 'includes/media/Exif.php',
|
|
|
|
|
'FormatExif' => 'includes/media/FormatMetadata.php',
|
2011-04-16 01:23:15 +00:00
|
|
|
'FormatMetadata' => 'includes/media/FormatMetadata.php',
|
2010-06-17 22:28:06 +00:00
|
|
|
'GIFHandler' => 'includes/media/GIF.php',
|
|
|
|
|
'GIFMetadataExtractor' => 'includes/media/GIFMetadataExtractor.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ImageHandler' => 'includes/media/Generic.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'IPTC' => 'includes/media/IPTC.php',
|
|
|
|
|
'JpegHandler' => 'includes/media/Jpeg.php',
|
|
|
|
|
'JpegMetadataExtractor' => 'includes/media/JpegMetadataExtractor.php',
|
2011-04-20 23:15:13 +00:00
|
|
|
'JpegOrTiffHandler' => 'includes/media/JpegOrTiff.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'MediaHandler' => 'includes/media/Generic.php',
|
2010-06-17 22:28:06 +00:00
|
|
|
'MediaTransformError' => 'includes/media/MediaTransformOutput.php',
|
|
|
|
|
'MediaTransformOutput' => 'includes/media/MediaTransformOutput.php',
|
2010-06-20 16:09:12 +00:00
|
|
|
'PNGHandler' => 'includes/media/PNG.php',
|
|
|
|
|
'PNGMetadataExtractor' => 'includes/media/PNGMetadataExtractor.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SvgHandler' => 'includes/media/SVG.php',
|
2010-11-01 23:57:09 +00:00
|
|
|
'SVGMetadataExtractor' => 'includes/media/SVGMetadataExtractor.php',
|
2010-06-17 22:28:06 +00:00
|
|
|
'ThumbnailImage' => 'includes/media/MediaTransformOutput.php',
|
|
|
|
|
'TiffHandler' => 'includes/media/Tiff.php',
|
|
|
|
|
'TransformParameterError' => 'includes/media/MediaTransformOutput.php',
|
2011-04-16 01:23:15 +00:00
|
|
|
'XMPInfo' => 'includes/media/XMPInfo.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'XMPReader' => 'includes/media/XMP.php',
|
2011-04-16 01:23:15 +00:00
|
|
|
'XMPValidate' => 'includes/media/XMPValidate.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/normal
|
|
|
|
|
'UtfNormal' => 'includes/normal/UtfNormal.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2011-03-03 04:38:17 +00:00
|
|
|
# includes/objectcache
|
|
|
|
|
'APCBagOStuff' => 'includes/objectcache/APCBagOStuff.php',
|
|
|
|
|
'BagOStuff' => 'includes/objectcache/BagOStuff.php',
|
|
|
|
|
'DBABagOStuff' => 'includes/objectcache/DBABagOStuff.php',
|
2011-03-03 04:48:14 +00:00
|
|
|
'eAccelBagOStuff' => 'includes/objectcache/eAccelBagOStuff.php',
|
2011-03-04 06:01:30 +00:00
|
|
|
'EhcacheBagOStuff' => 'includes/objectcache/EhcacheBagOStuff.php',
|
* Rewrote ObjectCache.php to conform to the modern coding style, and to be less convoluted about how CACHE_ANYTHING and CACHE_ACCEL are resolved. Moved most functionality to static members of a new ObjectCache class.
* Moved the global functions to GlobalFunctions.php, where they are now just convenience wrappers. Made them return non-references. Updated callers (none found in extensions).
* Added an advanced configuration method, $wgObjectCaches, which allows a lot more detail in the object cache configuration than $wgMainCacheType.
* Made all object cache classes derive from BagOStuff.
* Split the MWMemcached class into a generic client class and a MediaWiki-specific wrapper class. The wrapper class presents a simple BagOStuff interface to calling code, hiding memcached client internals, and will simplify the task of supporting the PECL extension.
* Added some extra constructor parameters to MWMemcached, configurable via $wgObjectCaches.
* Removed the *_multi() methods from BagOStuff, my grepping indicates that they are not used.
* Rewrote FakeMemCachedClient as a BagOStuff subclass, called EmptyBagOStuff.
* Added an optional "server" parameter to SQLBagOStuff. This allows the server holding the objectcache table to be different from the server holding the core DB.
* Added MultiWriteBagOStuff: a cache class which writes to multiple locations, and reads from them in a defined fallback sequence. This can be used to extend the cache space by adding disk-backed storage to existing in-memory caches.
* Made MWMemcached::get() return false on failure instead of null, to match the BagOStuff documentation and the other BagOStuff subclasses. Anything that was relying on it returning null would have already been broken with SqlBagOStuff.
* Fixed a bug in the memcached client causing keys with spaces or line breaks in them to break the memcached protocol, injecting arbitrary commands or parameters. Since the PECL client apparently also has this flaw, I implemented the fix in the wrapper class.
* Renamed BagOStuff::set_debug() to setDebug(), since we aren't emulating the memcached client anymore
* Fixed spelling error in MWMemcached: persistant -> persistent
2011-03-03 09:37:37 +00:00
|
|
|
'EmptyBagOStuff' => 'includes/objectcache/EmptyBagOStuff.php',
|
|
|
|
|
'FakeMemCachedClient' => 'includes/objectcache/EmptyBagOStuff.php',
|
2011-03-03 04:38:17 +00:00
|
|
|
'HashBagOStuff' => 'includes/objectcache/HashBagOStuff.php',
|
|
|
|
|
'MediaWikiBagOStuff' => 'includes/objectcache/SqlBagOStuff.php',
|
2011-03-03 04:48:14 +00:00
|
|
|
'MemCachedClientforWiki' => 'includes/objectcache/MemcachedClient.php',
|
* Rewrote ObjectCache.php to conform to the modern coding style, and to be less convoluted about how CACHE_ANYTHING and CACHE_ACCEL are resolved. Moved most functionality to static members of a new ObjectCache class.
* Moved the global functions to GlobalFunctions.php, where they are now just convenience wrappers. Made them return non-references. Updated callers (none found in extensions).
* Added an advanced configuration method, $wgObjectCaches, which allows a lot more detail in the object cache configuration than $wgMainCacheType.
* Made all object cache classes derive from BagOStuff.
* Split the MWMemcached class into a generic client class and a MediaWiki-specific wrapper class. The wrapper class presents a simple BagOStuff interface to calling code, hiding memcached client internals, and will simplify the task of supporting the PECL extension.
* Added some extra constructor parameters to MWMemcached, configurable via $wgObjectCaches.
* Removed the *_multi() methods from BagOStuff, my grepping indicates that they are not used.
* Rewrote FakeMemCachedClient as a BagOStuff subclass, called EmptyBagOStuff.
* Added an optional "server" parameter to SQLBagOStuff. This allows the server holding the objectcache table to be different from the server holding the core DB.
* Added MultiWriteBagOStuff: a cache class which writes to multiple locations, and reads from them in a defined fallback sequence. This can be used to extend the cache space by adding disk-backed storage to existing in-memory caches.
* Made MWMemcached::get() return false on failure instead of null, to match the BagOStuff documentation and the other BagOStuff subclasses. Anything that was relying on it returning null would have already been broken with SqlBagOStuff.
* Fixed a bug in the memcached client causing keys with spaces or line breaks in them to break the memcached protocol, injecting arbitrary commands or parameters. Since the PECL client apparently also has this flaw, I implemented the fix in the wrapper class.
* Renamed BagOStuff::set_debug() to setDebug(), since we aren't emulating the memcached client anymore
* Fixed spelling error in MWMemcached: persistant -> persistent
2011-03-03 09:37:37 +00:00
|
|
|
'MemcachedPhpBagOStuff' => 'includes/objectcache/MemcachedPhpBagOStuff.php',
|
|
|
|
|
'MultiWriteBagOStuff' => 'includes/objectcache/MultiWriteBagOStuff.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'MWMemcached' => 'includes/objectcache/MemcachedClient.php',
|
* Rewrote ObjectCache.php to conform to the modern coding style, and to be less convoluted about how CACHE_ANYTHING and CACHE_ACCEL are resolved. Moved most functionality to static members of a new ObjectCache class.
* Moved the global functions to GlobalFunctions.php, where they are now just convenience wrappers. Made them return non-references. Updated callers (none found in extensions).
* Added an advanced configuration method, $wgObjectCaches, which allows a lot more detail in the object cache configuration than $wgMainCacheType.
* Made all object cache classes derive from BagOStuff.
* Split the MWMemcached class into a generic client class and a MediaWiki-specific wrapper class. The wrapper class presents a simple BagOStuff interface to calling code, hiding memcached client internals, and will simplify the task of supporting the PECL extension.
* Added some extra constructor parameters to MWMemcached, configurable via $wgObjectCaches.
* Removed the *_multi() methods from BagOStuff, my grepping indicates that they are not used.
* Rewrote FakeMemCachedClient as a BagOStuff subclass, called EmptyBagOStuff.
* Added an optional "server" parameter to SQLBagOStuff. This allows the server holding the objectcache table to be different from the server holding the core DB.
* Added MultiWriteBagOStuff: a cache class which writes to multiple locations, and reads from them in a defined fallback sequence. This can be used to extend the cache space by adding disk-backed storage to existing in-memory caches.
* Made MWMemcached::get() return false on failure instead of null, to match the BagOStuff documentation and the other BagOStuff subclasses. Anything that was relying on it returning null would have already been broken with SqlBagOStuff.
* Fixed a bug in the memcached client causing keys with spaces or line breaks in them to break the memcached protocol, injecting arbitrary commands or parameters. Since the PECL client apparently also has this flaw, I implemented the fix in the wrapper class.
* Renamed BagOStuff::set_debug() to setDebug(), since we aren't emulating the memcached client anymore
* Fixed spelling error in MWMemcached: persistant -> persistent
2011-03-03 09:37:37 +00:00
|
|
|
'ObjectCache' => 'includes/objectcache/ObjectCache.php',
|
2011-03-03 04:38:17 +00:00
|
|
|
'SqlBagOStuff' => 'includes/objectcache/SqlBagOStuff.php',
|
|
|
|
|
'WinCacheBagOStuff' => 'includes/objectcache/WinCacheBagOStuff.php',
|
|
|
|
|
'XCacheBagOStuff' => 'includes/objectcache/XCacheBagOStuff.php',
|
|
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/parser
|
2011-04-17 23:42:22 +00:00
|
|
|
'CacheTime' => 'includes/parser/ParserOutput.php',
|
2008-08-18 14:44:51 +00:00
|
|
|
'CoreLinkFunctions' => 'includes/parser/CoreLinkFunctions.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'CoreParserFunctions' => 'includes/parser/CoreParserFunctions.php',
|
2010-02-03 07:10:58 +00:00
|
|
|
'CoreTagHooks' => 'includes/parser/CoreTagHooks.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'DateFormatter' => 'includes/parser/DateFormatter.php',
|
2008-08-16 10:13:35 +00:00
|
|
|
'LinkHolderArray' => 'includes/parser/LinkHolderArray.php',
|
2009-06-12 19:24:03 +00:00
|
|
|
'LinkMarkerReplacer' => 'includes/parser/Parser_LinkHooks.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'MWTidy' => 'includes/parser/Tidy.php',
|
|
|
|
|
'Parser' => 'includes/parser/Parser.php',
|
|
|
|
|
'Parser_DiffTest' => 'includes/parser/Parser_DiffTest.php',
|
|
|
|
|
'Parser_LinkHooks' => 'includes/parser/Parser_LinkHooks.php',
|
|
|
|
|
'ParserCache' => 'includes/parser/ParserCache.php',
|
|
|
|
|
'ParserOptions' => 'includes/parser/ParserOptions.php',
|
|
|
|
|
'ParserOutput' => 'includes/parser/ParserOutput.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'PPCustomFrame_DOM' => 'includes/parser/Preprocessor_DOM.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'PPCustomFrame_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'PPDAccum_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'PPDPart' => 'includes/parser/Preprocessor_DOM.php',
|
|
|
|
|
'PPDPart_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'PPDStack' => 'includes/parser/Preprocessor_DOM.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'PPDStack_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'PPDStackElement' => 'includes/parser/Preprocessor_DOM.php',
|
|
|
|
|
'PPDStackElement_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'PPFrame' => 'includes/parser/Preprocessor.php',
|
|
|
|
|
'PPFrame_DOM' => 'includes/parser/Preprocessor_DOM.php',
|
|
|
|
|
'PPFrame_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'PPNode' => 'includes/parser/Preprocessor.php',
|
|
|
|
|
'PPNode_DOM' => 'includes/parser/Preprocessor_DOM.php',
|
|
|
|
|
'PPNode_Hash_Array' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'PPNode_Hash_Attr' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'PPNode_Hash_Text' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'PPNode_Hash_Tree' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'PPTemplateFrame_DOM' => 'includes/parser/Preprocessor_DOM.php',
|
|
|
|
|
'PPTemplateFrame_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
|
|
|
|
'Preprocessor' => 'includes/parser/Preprocessor.php',
|
|
|
|
|
'Preprocessor_DOM' => 'includes/parser/Preprocessor_DOM.php',
|
|
|
|
|
'Preprocessor_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
2011-02-23 06:58:15 +00:00
|
|
|
'StripState' => 'includes/parser/StripState.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2011-04-16 02:19:40 +00:00
|
|
|
# includes/profiler
|
2011-04-16 11:09:20 +00:00
|
|
|
'Profiler' => 'includes/profiler/Profiler.php',
|
|
|
|
|
'ProfilerSimple' => 'includes/profiler/ProfilerSimple.php',
|
|
|
|
|
'ProfilerSimpleText' => 'includes/profiler/ProfilerSimpleText.php',
|
2011-05-16 12:50:02 +00:00
|
|
|
'ProfilerSimpleTrace' => 'includes/profiler/ProfilerSimpleTrace.php',
|
2011-04-16 11:09:20 +00:00
|
|
|
'ProfilerSimpleUDP' => 'includes/profiler/ProfilerSimpleUDP.php',
|
|
|
|
|
'ProfilerStub' => 'includes/profiler/ProfilerStub.php',
|
2011-04-16 02:19:40 +00:00
|
|
|
|
2011-04-17 23:42:22 +00:00
|
|
|
# includes/resourceloader
|
|
|
|
|
'ResourceLoader' => 'includes/resourceloader/ResourceLoader.php',
|
|
|
|
|
'ResourceLoaderContext' => 'includes/resourceloader/ResourceLoaderContext.php',
|
|
|
|
|
'ResourceLoaderFileModule' => 'includes/resourceloader/ResourceLoaderFileModule.php',
|
|
|
|
|
'ResourceLoaderModule' => 'includes/resourceloader/ResourceLoaderModule.php',
|
|
|
|
|
'ResourceLoaderNoscriptModule' => 'includes/resourceloader/ResourceLoaderNoscriptModule.php',
|
|
|
|
|
'ResourceLoaderSiteModule' => 'includes/resourceloader/ResourceLoaderSiteModule.php',
|
|
|
|
|
'ResourceLoaderStartUpModule' => 'includes/resourceloader/ResourceLoaderStartUpModule.php',
|
|
|
|
|
'ResourceLoaderUserGroupsModule' => 'includes/resourceloader/ResourceLoaderUserGroupsModule.php',
|
|
|
|
|
'ResourceLoaderUserModule' => 'includes/resourceloader/ResourceLoaderUserModule.php',
|
|
|
|
|
'ResourceLoaderUserOptionsModule' => 'includes/resourceloader/ResourceLoaderUserOptionsModule.php',
|
2011-05-21 22:52:32 +00:00
|
|
|
'ResourceLoaderUserTokensModule' => 'includes/resourceloader/ResourceLoaderUserTokensModule.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ResourceLoaderWikiModule' => 'includes/resourceloader/ResourceLoaderWikiModule.php',
|
|
|
|
|
|
|
|
|
|
# includes/revisiondelete
|
|
|
|
|
'RevDel_ArchivedFileItem' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_ArchivedFileList' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_ArchiveItem' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_ArchiveList' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_FileItem' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_FileList' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_Item' => 'includes/revisiondelete/RevisionDeleteAbstracts.php',
|
|
|
|
|
'RevDel_List' => 'includes/revisiondelete/RevisionDeleteAbstracts.php',
|
|
|
|
|
'RevDel_LogItem' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_LogList' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_RevisionItem' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevDel_RevisionList' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevisionDelete' => 'includes/revisiondelete/RevisionDelete.php',
|
|
|
|
|
'RevisionDeleter' => 'includes/revisiondelete/RevisionDeleter.php',
|
|
|
|
|
'RevisionDeleteUser' => 'includes/revisiondelete/RevisionDeleteUser.php',
|
|
|
|
|
|
2009-07-30 22:45:38 +00:00
|
|
|
# includes/search
|
|
|
|
|
'MySQLSearchResultSet' => 'includes/search/SearchMySQL.php',
|
|
|
|
|
'PostgresSearchResult' => 'includes/search/SearchPostgres.php',
|
|
|
|
|
'PostgresSearchResultSet' => 'includes/search/SearchPostgres.php',
|
|
|
|
|
'SearchEngine' => 'includes/search/SearchEngine.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SearchEngineDummy' => 'includes/search/SearchEngine.php',
|
2009-07-30 22:45:38 +00:00
|
|
|
'SearchHighlighter' => 'includes/search/SearchEngine.php',
|
|
|
|
|
'SearchIBM_DB2' => 'includes/search/SearchIBM_DB2.php',
|
2010-08-06 23:44:00 +00:00
|
|
|
'SearchMssql' => 'includes/search/SearchMssql.php',
|
2009-07-30 22:45:38 +00:00
|
|
|
'SearchMySQL' => 'includes/search/SearchMySQL.php',
|
|
|
|
|
'SearchOracle' => 'includes/search/SearchOracle.php',
|
|
|
|
|
'SearchPostgres' => 'includes/search/SearchPostgres.php',
|
|
|
|
|
'SearchResult' => 'includes/search/SearchEngine.php',
|
|
|
|
|
'SearchResultSet' => 'includes/search/SearchEngine.php',
|
|
|
|
|
'SearchResultTooMany' => 'includes/search/SearchEngine.php',
|
2009-10-29 16:19:35 +00:00
|
|
|
'SearchSqlite' => 'includes/search/SearchSqlite.php',
|
2009-07-31 00:18:09 +00:00
|
|
|
'SearchUpdate' => 'includes/search/SearchUpdate.php',
|
2009-07-30 22:45:38 +00:00
|
|
|
'SearchUpdateMyISAM' => 'includes/search/SearchUpdate.php',
|
2009-10-29 16:19:35 +00:00
|
|
|
'SqliteSearchResultSet' => 'includes/search/SearchSqlite.php',
|
2010-01-09 14:30:55 +00:00
|
|
|
'SqlSearchResultSet' => 'includes/search/SearchEngine.php',
|
2009-07-30 22:45:38 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/specials
|
2011-04-12 17:08:31 +00:00
|
|
|
'ActiveUsersPager' => 'includes/specials/SpecialActiveusers.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'AllmessagesTablePager' => 'includes/specials/SpecialAllmessages.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'AncientPagesPage' => 'includes/specials/SpecialAncientpages.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'BlockListPager' => 'includes/specials/SpecialBlockList.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'BrokenRedirectsPage' => 'includes/specials/SpecialBrokenRedirects.php',
|
|
|
|
|
'ContribsPager' => 'includes/specials/SpecialContributions.php',
|
|
|
|
|
'DBLockForm' => 'includes/specials/SpecialLockdb.php',
|
|
|
|
|
'DBUnlockForm' => 'includes/specials/SpecialUnlockdb.php',
|
|
|
|
|
'DeadendPagesPage' => 'includes/specials/SpecialDeadendpages.php',
|
2008-09-23 08:41:55 +00:00
|
|
|
'DeletedContribsPager' => 'includes/specials/SpecialDeletedContributions.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'DeletedContributionsPage' => 'includes/specials/SpecialDeletedContributions.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'DisambiguationsPage' => 'includes/specials/SpecialDisambiguations.php',
|
|
|
|
|
'DoubleRedirectsPage' => 'includes/specials/SpecialDoubleRedirects.php',
|
|
|
|
|
'EmailConfirmation' => 'includes/specials/SpecialConfirmemail.php',
|
|
|
|
|
'EmailInvalidation' => 'includes/specials/SpecialConfirmemail.php',
|
|
|
|
|
'FewestrevisionsPage' => 'includes/specials/SpecialFewestrevisions.php',
|
|
|
|
|
'FileDuplicateSearchPage' => 'includes/specials/SpecialFileDuplicateSearch.php',
|
2008-09-18 20:52:34 +00:00
|
|
|
'ImportReporter' => 'includes/specials/SpecialImport.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'IPBlockForm' => 'includes/specials/SpecialBlock.php',
|
2008-09-14 19:51:25 +00:00
|
|
|
'LinkSearchPage' => 'includes/specials/SpecialLinkSearch.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ListredirectsPage' => 'includes/specials/SpecialListredirects.php',
|
2009-09-26 00:49:32 +00:00
|
|
|
'LoginForm' => 'includes/specials/SpecialUserlogin.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'LonelyPagesPage' => 'includes/specials/SpecialLonelypages.php',
|
|
|
|
|
'LongPagesPage' => 'includes/specials/SpecialLongpages.php',
|
|
|
|
|
'MIMEsearchPage' => 'includes/specials/SpecialMIMEsearch.php',
|
|
|
|
|
'MostcategoriesPage' => 'includes/specials/SpecialMostcategories.php',
|
|
|
|
|
'MostimagesPage' => 'includes/specials/SpecialMostimages.php',
|
|
|
|
|
'MostlinkedCategoriesPage' => 'includes/specials/SpecialMostlinkedcategories.php',
|
|
|
|
|
'MostlinkedPage' => 'includes/specials/SpecialMostlinked.php',
|
2010-12-22 14:16:25 +00:00
|
|
|
'MostlinkedTemplatesPage' => 'includes/specials/SpecialMostlinkedtemplates.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'MostrevisionsPage' => 'includes/specials/SpecialMostrevisions.php',
|
|
|
|
|
'MovePageForm' => 'includes/specials/SpecialMovepage.php',
|
|
|
|
|
'NewPagesPager' => 'includes/specials/SpecialNewpages.php',
|
|
|
|
|
'PageArchive' => 'includes/specials/SpecialUndelete.php',
|
|
|
|
|
'PopularPagesPage' => 'includes/specials/SpecialPopularpages.php',
|
|
|
|
|
'RandomPage' => 'includes/specials/SpecialRandompage.php',
|
|
|
|
|
'ShortPagesPage' => 'includes/specials/SpecialShortpages.php',
|
2009-07-03 00:22:22 +00:00
|
|
|
'SpecialActiveUsers' => 'includes/specials/SpecialActiveusers.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialAllmessages' => 'includes/specials/SpecialAllmessages.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialAllpages' => 'includes/specials/SpecialAllpages.php',
|
2009-06-19 23:46:33 +00:00
|
|
|
'SpecialBlankpage' => 'includes/specials/SpecialBlankpage.php',
|
2011-03-11 23:33:36 +00:00
|
|
|
'SpecialBlock' => 'includes/specials/SpecialBlock.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialBlockList' => 'includes/specials/SpecialBlockList.php',
|
2010-07-17 18:32:15 +00:00
|
|
|
'SpecialBlockme' => 'includes/specials/SpecialBlockme.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialBookSources' => 'includes/specials/SpecialBooksources.php',
|
2010-08-21 15:39:07 +00:00
|
|
|
'SpecialCategories' => 'includes/specials/SpecialCategories.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialChangePassword' => 'includes/specials/SpecialChangePassword.php',
|
2010-06-19 21:17:42 +00:00
|
|
|
'SpecialComparePages' => 'includes/specials/SpecialComparePages.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialContributions' => 'includes/specials/SpecialContributions.php',
|
2011-03-24 23:28:39 +00:00
|
|
|
'SpecialEditWatchlist' => 'includes/specials/SpecialEditWatchlist.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialEmailUser' => 'includes/specials/SpecialEmailuser.php',
|
2009-02-06 23:36:12 +00:00
|
|
|
'SpecialExport' => 'includes/specials/SpecialExport.php',
|
2010-07-03 18:39:20 +00:00
|
|
|
'SpecialFilepath' => 'includes/specials/SpecialFilepath.php',
|
2008-11-26 02:10:56 +00:00
|
|
|
'SpecialImport' => 'includes/specials/SpecialImport.php',
|
2011-03-26 17:50:50 +00:00
|
|
|
'SpecialListFiles' => 'includes/specials/SpecialListfiles.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialListGroupRights' => 'includes/specials/SpecialListgrouprights.php',
|
2011-04-14 13:27:50 +00:00
|
|
|
'SpecialListUsers' => 'includes/specials/SpecialListusers.php',
|
2010-06-13 13:52:20 +00:00
|
|
|
'SpecialLockdb' => 'includes/specials/SpecialLockdb.php',
|
2010-07-18 12:10:39 +00:00
|
|
|
'SpecialLog' => 'includes/specials/SpecialLog.php',
|
2010-03-18 16:41:53 +00:00
|
|
|
'SpecialMergeHistory' => 'includes/specials/SpecialMergeHistory.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialMostlinkedtemplates' => 'includes/specials/SpecialMostlinkedtemplates.php',
|
2011-03-26 19:18:39 +00:00
|
|
|
'SpecialNewFiles' => 'includes/specials/SpecialNewimages.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialNewpages' => 'includes/specials/SpecialNewpages.php',
|
2011-04-20 15:27:09 +00:00
|
|
|
'SpecialPasswordReset' => 'includes/specials/SpecialPasswordReset.php',
|
2009-04-24 01:31:17 +00:00
|
|
|
'SpecialPreferences' => 'includes/specials/SpecialPreferences.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialPrefixindex' => 'includes/specials/SpecialPrefixindex.php',
|
2010-08-15 16:57:07 +00:00
|
|
|
'SpecialProtectedpages' => 'includes/specials/SpecialProtectedpages.php',
|
|
|
|
|
'SpecialProtectedtitles' => 'includes/specials/SpecialProtectedtitles.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialRandomredirect' => 'includes/specials/SpecialRandomredirect.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'SpecialRecentChanges' => 'includes/specials/SpecialRecentchanges.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialRecentchangeslinked' => 'includes/specials/SpecialRecentchangeslinked.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialRevisionDelete' => 'includes/specials/SpecialRevisiondelete.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialSearch' => 'includes/specials/SpecialSearch.php',
|
2010-07-10 20:13:06 +00:00
|
|
|
'SpecialSpecialpages' => 'includes/specials/SpecialSpecialpages.php',
|
2008-12-13 01:45:49 +00:00
|
|
|
'SpecialStatistics' => 'includes/specials/SpecialStatistics.php',
|
2009-01-28 19:08:18 +00:00
|
|
|
'SpecialTags' => 'includes/specials/SpecialTags.php',
|
2011-03-13 21:33:52 +00:00
|
|
|
'SpecialUnblock' => 'includes/specials/SpecialUnblock.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialUndelete' => 'includes/specials/SpecialUndelete.php',
|
2010-06-13 13:52:20 +00:00
|
|
|
'SpecialUnlockdb' => 'includes/specials/SpecialUnlockdb.php',
|
2009-10-18 19:41:01 +00:00
|
|
|
'SpecialUpload' => 'includes/specials/SpecialUpload.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SpecialUploadStash' => 'includes/specials/SpecialUploadStash.php',
|
2010-07-16 07:24:45 +00:00
|
|
|
'SpecialUserlogout' => 'includes/specials/SpecialUserlogout.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialVersion' => 'includes/specials/SpecialVersion.php',
|
2011-03-26 13:04:40 +00:00
|
|
|
'SpecialWatchlist' => 'includes/specials/SpecialWatchlist.php',
|
2009-04-15 04:39:49 +00:00
|
|
|
'SpecialWhatlinkshere' => 'includes/specials/SpecialWhatlinkshere.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'UncategorizedCategoriesPage' => 'includes/specials/SpecialUncategorizedcategories.php',
|
2010-12-22 14:16:25 +00:00
|
|
|
'UncategorizedImagesPage' => 'includes/specials/SpecialUncategorizedimages.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'UncategorizedPagesPage' => 'includes/specials/SpecialUncategorizedpages.php',
|
|
|
|
|
'UncategorizedTemplatesPage' => 'includes/specials/SpecialUncategorizedtemplates.php',
|
|
|
|
|
'UnusedCategoriesPage' => 'includes/specials/SpecialUnusedcategories.php',
|
|
|
|
|
'UnusedimagesPage' => 'includes/specials/SpecialUnusedimages.php',
|
|
|
|
|
'UnusedtemplatesPage' => 'includes/specials/SpecialUnusedtemplates.php',
|
|
|
|
|
'UnwatchedpagesPage' => 'includes/specials/SpecialUnwatchedpages.php',
|
|
|
|
|
'UploadForm' => 'includes/specials/SpecialUpload.php',
|
2009-10-25 13:37:15 +00:00
|
|
|
'UploadSourceField' => 'includes/specials/SpecialUpload.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'UserrightsPage' => 'includes/specials/SpecialUserrights.php',
|
2011-04-12 17:04:56 +00:00
|
|
|
'UsersPager' => 'includes/specials/SpecialListusers.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'WantedCategoriesPage' => 'includes/specials/SpecialWantedcategories.php',
|
2008-09-11 22:30:27 +00:00
|
|
|
'WantedFilesPage' => 'includes/specials/SpecialWantedfiles.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'WantedPagesPage' => 'includes/specials/SpecialWantedpages.php',
|
2008-10-18 17:32:40 +00:00
|
|
|
'WantedTemplatesPage' => 'includes/specials/SpecialWantedtemplates.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'WatchlistEditor' => 'includes/specials/SpecialEditWatchlist.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'WithoutInterwikiPage' => 'includes/specials/SpecialWithoutinterwiki.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/templates
|
|
|
|
|
'UsercreateTemplate' => 'includes/templates/Userlogin.php',
|
|
|
|
|
'UserloginTemplate' => 'includes/templates/Userlogin.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2010-06-17 22:28:06 +00:00
|
|
|
# includes/upload
|
|
|
|
|
'UploadBase' => 'includes/upload/UploadBase.php',
|
|
|
|
|
'UploadFromFile' => 'includes/upload/UploadFromFile.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'UploadFromStash' => 'includes/upload/UploadFromStash.php',
|
2010-06-17 22:28:06 +00:00
|
|
|
'UploadFromUrl' => 'includes/upload/UploadFromUrl.php',
|
2010-11-06 11:52:14 +00:00
|
|
|
'UploadStash' => 'includes/upload/UploadStash.php',
|
|
|
|
|
'UploadStashBadPathException' => 'includes/upload/UploadStash.php',
|
|
|
|
|
'UploadStashBadVersionException' => 'includes/upload/UploadStash.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'UploadStashFile' => 'includes/upload/UploadStash.php',
|
2010-11-06 11:52:14 +00:00
|
|
|
'UploadStashFileException' => 'includes/upload/UploadStash.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'UploadStashFileNotFoundException' => 'includes/upload/UploadStash.php',
|
|
|
|
|
'UploadStashNotAvailableException' => 'includes/upload/UploadStash.php',
|
2010-11-30 18:37:08 +00:00
|
|
|
'UploadStashZeroLengthFileException' => 'includes/upload/UploadStash.php',
|
2010-06-17 22:28:06 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# languages
|
|
|
|
|
'FakeConverter' => 'languages/Language.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'Language' => 'languages/Language.php',
|
2010-01-04 05:55:33 +00:00
|
|
|
'LanguageConverter' => 'languages/LanguageConverter.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2010-06-25 02:55:51 +00:00
|
|
|
# maintenance
|
2010-09-10 16:53:35 +00:00
|
|
|
'ConvertLinks' => 'maintenance/convertLinks.php',
|
2010-06-25 02:55:51 +00:00
|
|
|
'DeleteArchivedFilesImplementation' => 'maintenance/deleteArchivedFiles.inc',
|
|
|
|
|
'DeleteArchivedRevisionsImplementation' => 'maintenance/deleteArchivedRevisions.inc',
|
2010-08-16 14:23:28 +00:00
|
|
|
'DeleteDefaultMessages' => 'maintenance/deleteDefaultMessages.php',
|
2010-09-10 16:53:35 +00:00
|
|
|
'PopulateCategory' => 'maintenance/populateCategory.php',
|
|
|
|
|
'PopulateLogSearch' => 'maintenance/populateLogSearch.php',
|
2011-02-19 11:49:14 +00:00
|
|
|
'PopulateLogUsertext' => 'maintenance/populateLogUsertext.php',
|
2010-09-10 16:53:35 +00:00
|
|
|
'PopulateParentId' => 'maintenance/populateParentId.php',
|
|
|
|
|
'PopulateRevisionLength' => 'maintenance/populateRevisionLength.php',
|
2010-06-25 02:55:51 +00:00
|
|
|
'SevenZipStream' => 'maintenance/7zip.inc',
|
2010-08-12 16:06:47 +00:00
|
|
|
'Sqlite' => 'maintenance/sqlite.inc',
|
2010-09-10 16:53:35 +00:00
|
|
|
'UpdateCollation' => 'maintenance/updateCollation.php',
|
|
|
|
|
'UpdateRestrictions' => 'maintenance/updateRestrictions.php',
|
|
|
|
|
'UserDupes' => 'maintenance/userDupes.inc',
|
2010-06-25 05:55:23 +00:00
|
|
|
|
|
|
|
|
# maintenance/language
|
2010-06-25 02:55:51 +00:00
|
|
|
'csvStatsOutput' => 'maintenance/language/StatOutputs.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'statsOutput' => 'maintenance/language/StatOutputs.php',
|
|
|
|
|
'textStatsOutput' => 'maintenance/language/StatOutputs.php',
|
2010-06-25 02:55:51 +00:00
|
|
|
'wikiStatsOutput' => 'maintenance/language/StatOutputs.php',
|
2010-12-14 16:48:44 +00:00
|
|
|
|
|
|
|
|
# tests
|
|
|
|
|
'AnsiTermColorer' => 'tests/testHelpers.inc',
|
2010-12-16 13:49:48 +00:00
|
|
|
'DbTestPreviewer' => 'tests/testHelpers.inc',
|
|
|
|
|
'DbTestRecorder' => 'tests/testHelpers.inc',
|
|
|
|
|
'DummyTermColorer' => 'tests/testHelpers.inc',
|
|
|
|
|
'RemoteTestRecorder' => 'tests/testHelpers.inc',
|
|
|
|
|
'TestFileIterator' => 'tests/testHelpers.inc',
|
|
|
|
|
'TestRecorder' => 'tests/testHelpers.inc',
|
2010-12-14 16:48:44 +00:00
|
|
|
|
|
|
|
|
# tests/parser
|
|
|
|
|
'ParserTest' => 'tests/parser/parserTest.inc',
|
|
|
|
|
'ParserTestParserHook' => 'tests/parser/parserTestsParserHook.php',
|
|
|
|
|
'ParserTestStaticParserHook' => 'tests/parser/parserTestsStaticParserHook.php',
|
|
|
|
|
|
|
|
|
|
# tests/selenium
|
|
|
|
|
'Selenium' => 'tests/selenium/Selenium.php',
|
|
|
|
|
'SeleniumLoader' => 'tests/selenium/SeleniumLoader.php',
|
|
|
|
|
'SeleniumTestCase' => 'tests/selenium/SeleniumTestCase.php',
|
|
|
|
|
'SeleniumTestConsoleLogger' => 'tests/selenium/SeleniumTestConsoleLogger.php',
|
|
|
|
|
'SeleniumTestHTMLLogger' => 'tests/selenium/SeleniumTestHTMLLogger.php',
|
|
|
|
|
'SeleniumTestListener' => 'tests/selenium/SeleniumTestListener.php',
|
|
|
|
|
'SeleniumTestSuite' => 'tests/selenium/SeleniumTestSuite.php',
|
|
|
|
|
'SeleniumConfig' => 'tests/selenium/SeleniumConfig.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
);
|
2008-04-14 07:45:50 +00:00
|
|
|
|
2008-07-24 12:51:26 +00:00
|
|
|
class AutoLoader {
|
2008-07-02 19:41:58 +00:00
|
|
|
/**
|
|
|
|
|
* autoload - take a class name and attempt to load it
|
2008-09-14 19:51:25 +00:00
|
|
|
*
|
2010-02-12 21:37:22 +00:00
|
|
|
* @param $className String: name of class we're looking for.
|
2008-07-02 19:41:58 +00:00
|
|
|
* @return bool Returning false is important on failure as
|
|
|
|
|
* it allows Zend to try and look in other registered autoloaders
|
2008-09-14 19:51:25 +00:00
|
|
|
* as well.
|
2008-07-02 19:41:58 +00:00
|
|
|
*/
|
2008-06-16 20:21:26 +00:00
|
|
|
static function autoload( $className ) {
|
2008-07-24 12:45:23 +00:00
|
|
|
global $wgAutoloadClasses, $wgAutoloadLocalClasses;
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
if ( isset( $wgAutoloadLocalClasses[$className] ) ) {
|
|
|
|
|
$filename = $wgAutoloadLocalClasses[$className];
|
2008-06-16 20:21:26 +00:00
|
|
|
} elseif ( isset( $wgAutoloadClasses[$className] ) ) {
|
|
|
|
|
$filename = $wgAutoloadClasses[$className];
|
|
|
|
|
} else {
|
|
|
|
|
# Try a different capitalisation
|
|
|
|
|
# The case can sometimes be wrong when unserializing PHP 4 objects
|
|
|
|
|
$filename = false;
|
|
|
|
|
$lowerClass = strtolower( $className );
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
foreach ( $wgAutoloadLocalClasses as $class2 => $file2 ) {
|
2008-06-16 20:21:26 +00:00
|
|
|
if ( strtolower( $class2 ) == $lowerClass ) {
|
|
|
|
|
$filename = $file2;
|
|
|
|
|
}
|
|
|
|
|
}
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2008-06-16 20:21:26 +00:00
|
|
|
if ( !$filename ) {
|
2010-10-21 18:26:17 +00:00
|
|
|
if ( function_exists( 'wfDebug' ) ) {
|
2009-01-13 20:28:54 +00:00
|
|
|
wfDebug( "Class {$className} not found; skipped loading\n" );
|
2010-10-21 18:26:17 +00:00
|
|
|
}
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2008-06-16 20:21:26 +00:00
|
|
|
# Give up
|
2008-07-02 19:41:58 +00:00
|
|
|
return false;
|
2006-07-02 15:57:59 +00:00
|
|
|
}
|
|
|
|
|
}
|
2008-06-16 20:21:26 +00:00
|
|
|
|
|
|
|
|
# Make an absolute path, this improves performance by avoiding some stat calls
|
|
|
|
|
if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) != ':' ) {
|
|
|
|
|
global $IP;
|
|
|
|
|
$filename = "$IP/$filename";
|
2006-07-02 15:57:59 +00:00
|
|
|
}
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2008-06-16 20:21:26 +00:00
|
|
|
require( $filename );
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2008-07-02 19:41:58 +00:00
|
|
|
return true;
|
2006-06-06 09:50:01 +00:00
|
|
|
}
|
2006-07-01 07:22:59 +00:00
|
|
|
|
2010-03-12 22:52:11 +00:00
|
|
|
/**
|
|
|
|
|
* Force a class to be run through the autoloader, helpful for things like
|
|
|
|
|
* Sanitizer that have define()s outside of their class definition. Of course
|
|
|
|
|
* this wouldn't be necessary if everything in MediaWiki was class-based. Sigh.
|
|
|
|
|
*
|
|
|
|
|
* @return Boolean Return the results of class_exists() so we know if we were successful
|
|
|
|
|
*/
|
|
|
|
|
static function loadClass( $class ) {
|
|
|
|
|
return class_exists( $class );
|
|
|
|
|
}
|
2006-06-06 09:50:01 +00:00
|
|
|
}
|
|
|
|
|
|
2011-04-04 01:12:22 +00:00
|
|
|
if ( function_exists( 'spl_autoload_register' ) ) {
|
|
|
|
|
spl_autoload_register( array( 'AutoLoader', 'autoload' ) );
|
|
|
|
|
} else {
|
|
|
|
|
function __autoload( $class ) {
|
|
|
|
|
AutoLoader::autoload( $class );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ini_set( 'unserialize_callback_func', '__autoload' );
|
|
|
|
|
}
|