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
|
|
|
|
|
*
|
2012-05-22 18:06:30 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
*
|
2010-08-08 14:23:14 +00:00
|
|
|
* @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
|
|
|
|
|
'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',
|
2011-04-17 23:42:22 +00:00
|
|
|
'BaseTemplate' => 'includes/SkinTemplate.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Block' => 'includes/Block.php',
|
2012-04-10 12:26:11 +00:00
|
|
|
'CacheHelper' => 'includes/CacheHelper.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Category' => 'includes/Category.php',
|
|
|
|
|
'Categoryfinder' => 'includes/Categoryfinder.php',
|
|
|
|
|
'CategoryPage' => 'includes/CategoryPage.php',
|
2011-10-15 17:37:05 +00:00
|
|
|
'CategoryViewer' => 'includes/CategoryViewer.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ChangesFeed' => 'includes/ChangesFeed.php',
|
2013-12-09 11:11:14 +00:00
|
|
|
'ChangesListSpecialPage' => 'includes/specialpage/ChangesListSpecialPage.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',
|
2013-11-17 15:02:29 +00:00
|
|
|
'CollationCkb' => 'includes/Collation.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ConcatenatedGzipHistoryBlob' => 'includes/HistoryBlob.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'Cookie' => 'includes/Cookie.php',
|
|
|
|
|
'CookieJar' => 'includes/Cookie.php',
|
2012-01-17 03:58:41 +00:00
|
|
|
'CurlHttpRequest' => 'includes/HttpFunctions.php',
|
2012-02-13 00:19:06 +00:00
|
|
|
'DeprecatedGlobal' => 'includes/DeprecatedGlobal.php',
|
2011-11-03 19:16:09 +00:00
|
|
|
'DerivativeRequest' => 'includes/WebRequest.php',
|
2008-10-17 09:11:43 +00:00
|
|
|
'DiffHistoryBlob' => 'includes/HistoryBlob.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',
|
|
|
|
|
'FakeTitle' => 'includes/FakeTitle.php',
|
2011-01-02 15:54:18 +00:00
|
|
|
'Fallback' => 'includes/Fallback.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',
|
2009-02-26 06:02:32 +00:00
|
|
|
'ForkController' => 'includes/ForkController.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'FormOptions' => 'includes/FormOptions.php',
|
2013-12-09 16:52:16 +00:00
|
|
|
'FormSpecialPage' => 'includes/specialpage/FormSpecialPage.php',
|
2012-03-23 11:19:13 +00:00
|
|
|
'GitInfo' => 'includes/GitInfo.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2011-01-17 03:35:42 +00:00
|
|
|
'Hooks' => 'includes/Hooks.php',
|
2009-08-11 00:09:24 +00:00
|
|
|
'Html' => 'includes/Html.php',
|
2013-09-16 16:54:32 +00:00
|
|
|
'HtmlFormatter' => 'includes/HtmlFormatter.php',
|
2013-11-19 12:55:50 +00:00
|
|
|
'HTMLApiField' => 'includes/htmlform/HTMLApiField.php',
|
|
|
|
|
'HTMLButtonField' => 'includes/htmlform/HTMLButtonField.php',
|
|
|
|
|
'HTMLCheckField' => 'includes/htmlform/HTMLCheckField.php',
|
|
|
|
|
'HTMLCheckMatrix' => 'includes/htmlform/HTMLCheckMatrix.php',
|
|
|
|
|
'HTMLEditTools' => 'includes/htmlform/HTMLEditTools.php',
|
|
|
|
|
'HTMLFloatField' => 'includes/htmlform/HTMLFloatField.php',
|
|
|
|
|
'HTMLForm' => 'includes/htmlform/HTMLForm.php',
|
|
|
|
|
'HTMLFormField' => 'includes/htmlform/HTMLFormField.php',
|
|
|
|
|
'HTMLFormFieldRequiredOptionsException' => 'includes/htmlform/HTMLFormFieldRequiredOptionsException.php',
|
|
|
|
|
'HTMLHiddenField' => 'includes/htmlform/HTMLHiddenField.php',
|
|
|
|
|
'HTMLInfoField' => 'includes/htmlform/HTMLInfoField.php',
|
|
|
|
|
'HTMLIntField' => 'includes/htmlform/HTMLIntField.php',
|
|
|
|
|
'HTMLNestedFilterable' => 'includes/htmlform/HTMLNestedFilterable.php',
|
|
|
|
|
'HTMLMultiSelectField' => 'includes/htmlform/HTMLMultiSelectField.php',
|
|
|
|
|
'HTMLRadioField' => 'includes/htmlform/HTMLRadioField.php',
|
|
|
|
|
'HTMLSelectAndOtherField' => 'includes/htmlform/HTMLSelectAndOtherField.php',
|
|
|
|
|
'HTMLSelectField' => 'includes/htmlform/HTMLSelectField.php',
|
|
|
|
|
'HTMLSelectOrOtherField' => 'includes/htmlform/HTMLSelectOrOtherField.php',
|
|
|
|
|
'HTMLSubmitField' => 'includes/htmlform/HTMLSubmitField.php',
|
|
|
|
|
'HTMLTextAreaField' => 'includes/htmlform/HTMLTextAreaField.php',
|
|
|
|
|
'HTMLTextField' => 'includes/htmlform/HTMLTextField.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Http' => 'includes/HttpFunctions.php',
|
2012-04-10 12:26:11 +00:00
|
|
|
'ICacheHelper' => 'includes/CacheHelper.php',
|
2011-01-17 14:02:22 +00:00
|
|
|
'IcuCollation' => 'includes/Collation.php',
|
2011-09-11 01:13:08 +00:00
|
|
|
'IdentityCollation' => 'includes/Collation.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2013-12-09 16:52:16 +00:00
|
|
|
'IncludableSpecialPage' => 'includes/specialpage/IncludableSpecialPage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'IndexPager' => 'includes/Pager.php',
|
2011-04-23 02:35:21 +00:00
|
|
|
'Interwiki' => 'includes/interwiki/Interwiki.php',
|
2012-12-14 21:18:43 +00:00
|
|
|
'LCStore' => 'includes/cache/LocalisationCache.php',
|
2013-11-17 21:09:31 +00:00
|
|
|
'LCStoreAccel' => 'includes/cache/LocalisationCache.php',
|
|
|
|
|
'LCStoreCDB' => 'includes/cache/LocalisationCache.php',
|
|
|
|
|
'LCStoreDB' => 'includes/cache/LocalisationCache.php',
|
|
|
|
|
'LCStoreNull' => 'includes/cache/LocalisationCache.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',
|
2012-12-14 21:18:43 +00:00
|
|
|
'LocalisationCache' => 'includes/cache/LocalisationCache.php',
|
2013-11-17 20:59:43 +00:00
|
|
|
'LocalisationCacheBulkLoad' => 'includes/cache/LocalisationCache.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2013-12-20 22:34:49 +00:00
|
|
|
'MediaWikiVersionFetcher' => 'includes/MediaWikiVersionFetcher.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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'MWHookException' => 'includes/Hooks.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',
|
|
|
|
|
'OutputPage' => 'includes/OutputPage.php',
|
2013-03-07 16:50:43 +00:00
|
|
|
'Page' => 'includes/WikiPage.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',
|
2011-11-30 13:37:22 +00:00
|
|
|
'PathRouter' => 'includes/PathRouter.php',
|
2012-02-24 11:31:36 +00:00
|
|
|
'PathRouterPatternReplacer' => 'includes/PathRouter.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',
|
2013-03-18 23:16:51 +00:00
|
|
|
'PoolCounterWorkViaCallback' => 'includes/PoolCounter.php',
|
2011-11-17 20:21:54 +00:00
|
|
|
'PoolWorkArticleView' => 'includes/WikiPage.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',
|
2012-08-07 14:46:31 +00:00
|
|
|
'RawMessage' => 'includes/Message.php',
|
2013-12-09 16:52:16 +00:00
|
|
|
'RedirectSpecialArticle' => 'includes/specialpage/RedirectSpecialPage.php',
|
|
|
|
|
'RedirectSpecialPage' => 'includes/specialpage/RedirectSpecialPage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ReverseChronologicalPager' => 'includes/Pager.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'RevisionItem' => 'includes/RevisionList.php',
|
2011-09-09 21:25:21 +00:00
|
|
|
'RevisionItemBase' => 'includes/RevisionList.php',
|
|
|
|
|
'RevisionListBase' => 'includes/RevisionList.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Revision' => 'includes/Revision.php',
|
2011-07-02 09:04:32 +00:00
|
|
|
'RevisionList' => 'includes/RevisionList.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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
|
|
|
'Skin' => 'includes/Skin.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'SkinTemplate' => 'includes/SkinTemplate.php',
|
2013-12-09 16:52:16 +00:00
|
|
|
'SpecialCreateAccount' => 'includes/specials/SpecialCreateAccount.php',
|
|
|
|
|
'SpecialListAdmins' => 'includes/specials/SpecialListusers.php',
|
|
|
|
|
'SpecialListBots' => 'includes/specials/SpecialListusers.php',
|
|
|
|
|
'SpecialMycontributions' => 'includes/specials/SpecialMyRedirectPages.php',
|
|
|
|
|
'SpecialMypage' => 'includes/specials/SpecialMyRedirectPages.php',
|
|
|
|
|
'SpecialMytalk' => 'includes/specials/SpecialMyRedirectPages.php',
|
|
|
|
|
'SpecialMyuploads' => 'includes/specials/SpecialMyRedirectPages.php',
|
|
|
|
|
'SpecialAllMyUploads' => 'includes/specials/SpecialMyRedirectPages.php',
|
|
|
|
|
'SpecialPage' => 'includes/specialpage/SpecialPage.php',
|
2014-01-16 20:11:45 +00:00
|
|
|
'SpecialPageFactory' => 'includes/specialpage/SpecialPageFactory.php',
|
2013-12-09 16:52:16 +00:00
|
|
|
'SpecialRedirectToSpecial' => 'includes/specialpage/RedirectSpecialPage.php',
|
2010-02-05 03:36:04 +00:00
|
|
|
'SquidPurgeClient' => 'includes/SquidPurgeClient.php',
|
|
|
|
|
'SquidPurgeClientPool' => 'includes/SquidPurgeClient.php',
|
2013-03-28 20:18:30 +00:00
|
|
|
'StatCounter' => 'includes/StatCounter.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Status' => 'includes/Status.php',
|
2011-08-13 19:03:51 +00:00
|
|
|
'StreamFile' => 'includes/StreamFile.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',
|
2014-01-25 15:21:09 +00:00
|
|
|
'MWTimestamp' => 'includes/MWTimestamp.php',
|
|
|
|
|
'TimestampException' => 'includes/TimestampException.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'Title' => 'includes/Title.php',
|
2008-07-29 14:53:10 +00:00
|
|
|
'TitleArray' => 'includes/TitleArray.php',
|
2014-01-26 17:49:18 +00:00
|
|
|
'TitleArrayFromResult' => 'includes/TitleArrayFromResult.php',
|
2013-12-09 16:52:16 +00:00
|
|
|
'UnlistedSpecialPage' => 'includes/specialpage/UnlistedSpecialPage.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'UploadSourceAdapter' => 'includes/Import.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',
|
2014-01-26 17:49:18 +00:00
|
|
|
'UserArrayFromResult' => 'includes/UserArrayFromResult.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'UserCache' => 'includes/cache/UserCache.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'UserMailer' => 'includes/UserMailer.php',
|
|
|
|
|
'UserRightsProxy' => 'includes/UserRightsProxy.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',
|
2011-06-30 17:14:27 +00:00
|
|
|
'WikiCategoryPage' => 'includes/WikiCategoryPage.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'WikiExporter' => 'includes/Export.php',
|
2013-03-07 16:50:43 +00:00
|
|
|
'WikiFilePage' => 'includes/WikiFilePage.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'WikiImporter' => 'includes/Import.php',
|
2013-03-07 16:50:43 +00:00
|
|
|
'WikiPage' => 'includes/WikiPage.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'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
|
|
|
'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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'XMLReader2' => 'includes/Import.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'XmlSelect' => 'includes/Xml.php',
|
2007-04-20 12:31:36 +00:00
|
|
|
|
2011-04-14 10:38:29 +00:00
|
|
|
# includes/actions
|
2014-02-26 19:49:12 +00:00
|
|
|
'Action' => 'includes/actions/Action.php',
|
2012-04-10 12:26:11 +00:00
|
|
|
'CachedAction' => 'includes/actions/CachedAction.php',
|
2011-04-14 10:38:29 +00:00
|
|
|
'CreditsAction' => 'includes/actions/CreditsAction.php',
|
2012-01-17 19:56:08 +00:00
|
|
|
'DeleteAction' => 'includes/actions/DeleteAction.php',
|
|
|
|
|
'EditAction' => 'includes/actions/EditAction.php',
|
2014-02-26 19:49:12 +00:00
|
|
|
'FormlessAction' => 'includes/actions/FormlessAction.php',
|
|
|
|
|
'FormAction' => 'includes/actions/FormAction.php',
|
2011-10-23 09:21:02 +00:00
|
|
|
'HistoryAction' => 'includes/actions/HistoryAction.php',
|
|
|
|
|
'HistoryPage' => 'includes/actions/HistoryAction.php',
|
|
|
|
|
'HistoryPager' => 'includes/actions/HistoryAction.php',
|
2011-06-20 18:55:17 +00:00
|
|
|
'InfoAction' => 'includes/actions/InfoAction.php',
|
2011-06-12 18:46:07 +00:00
|
|
|
'MarkpatrolledAction' => 'includes/actions/MarkpatrolledAction.php',
|
2012-01-17 19:56:08 +00:00
|
|
|
'ProtectAction' => 'includes/actions/ProtectAction.php',
|
2011-04-14 10:38:29 +00:00
|
|
|
'PurgeAction' => 'includes/actions/PurgeAction.php',
|
2011-10-20 08:10:25 +00:00
|
|
|
'RawAction' => 'includes/actions/RawAction.php',
|
|
|
|
|
'RawPage' => 'includes/actions/RawAction.php',
|
2012-01-17 19:56:08 +00:00
|
|
|
'RenderAction' => 'includes/actions/RenderAction.php',
|
2011-07-01 20:07:21 +00:00
|
|
|
'RevertAction' => 'includes/actions/RevertAction.php',
|
|
|
|
|
'RevertFileAction' => 'includes/actions/RevertAction.php',
|
2011-06-11 08:30:19 +00:00
|
|
|
'RevisiondeleteAction' => 'includes/actions/RevisiondeleteAction.php',
|
2011-07-02 13:46:56 +00:00
|
|
|
'RollbackAction' => 'includes/actions/RollbackAction.php',
|
2012-01-17 19:56:08 +00:00
|
|
|
'SubmitAction' => 'includes/actions/EditAction.php',
|
|
|
|
|
'UnprotectAction' => 'includes/actions/ProtectAction.php',
|
2011-04-14 10:38:29 +00:00
|
|
|
'UnwatchAction' => 'includes/actions/WatchAction.php',
|
2012-01-17 19:56:08 +00:00
|
|
|
'ViewAction' => 'includes/actions/ViewAction.php',
|
2011-04-14 10:38:29 +00:00
|
|
|
'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',
|
2012-08-08 13:58:47 +00:00
|
|
|
'ApiCreateAccount' => 'includes/api/ApiCreateAccount.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',
|
2011-06-06 14:50:34 +00:00
|
|
|
'ApiFeedContributions' => 'includes/api/ApiFeedContributions.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2012-06-19 01:28:05 +00:00
|
|
|
'ApiFormatNone' => 'includes/api/ApiFormatNone.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2013-01-08 11:35:55 +00:00
|
|
|
'ApiImageRotate' => 'includes/api/ApiImageRotate.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',
|
2013-02-05 06:52:55 +00:00
|
|
|
'ApiModuleManager' => 'includes/api/ApiModuleManager.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiMove' => 'includes/api/ApiMove.php',
|
|
|
|
|
'ApiOpenSearch' => 'includes/api/ApiOpenSearch.php',
|
2012-04-16 20:02:34 +00:00
|
|
|
'ApiOptions' => 'includes/api/ApiOptions.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2012-04-11 15:10:22 +00:00
|
|
|
'ApiQueryAllImages' => 'includes/api/ApiQueryAllImages.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiQueryAllLinks' => 'includes/api/ApiQueryAllLinks.php',
|
2012-04-11 15:10:22 +00:00
|
|
|
'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',
|
2013-11-14 21:07:52 +00:00
|
|
|
'ApiQueryContributors' => 'includes/api/ApiQueryContributors.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2012-06-05 22:11:00 +00:00
|
|
|
'ApiQueryORM' => 'includes/api/ApiQueryORM.php',
|
2010-08-07 18:50:23 +00:00
|
|
|
'ApiQueryPageProps' => 'includes/api/ApiQueryPageProps.php',
|
2012-12-31 21:30:24 +00:00
|
|
|
'ApiQueryPagesWithProp' => 'includes/api/ApiQueryPagesWithProp.php',
|
|
|
|
|
'ApiQueryPagePropNames' => 'includes/api/ApiQueryPagePropNames.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',
|
2013-09-20 21:52:10 +00:00
|
|
|
'ApiQueryFileRepoInfo' => 'includes/api/ApiQueryFileRepoInfo.php',
|
2013-12-30 21:57:27 +00:00
|
|
|
'ApiQueryRedirects' => 'includes/api/ApiQueryRedirects.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',
|
2013-06-26 20:59:40 +00:00
|
|
|
'ApiRevisionDelete' => 'includes/api/ApiRevisionDelete.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ApiRollback' => 'includes/api/ApiRollback.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ApiRsd' => 'includes/api/ApiRsd.php',
|
2014-02-12 22:43:14 +00:00
|
|
|
'ApiRunJobs' => 'includes/api/ApiRunJobs.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'ApiSetNotificationTimestamp' => 'includes/api/ApiSetNotificationTimestamp.php',
|
2012-03-28 22:02:10 +00:00
|
|
|
'ApiTokens' => 'includes/api/ApiTokens.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
|
2012-11-27 17:26:02 +00:00
|
|
|
'BacklinkCache' => 'includes/cache/BacklinkCache.php',
|
2011-04-25 21:33:38 +00:00
|
|
|
'CacheDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'ConstantDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'DependencyWrapper' => 'includes/cache/CacheDependency.php',
|
2011-09-29 08:18:20 +00:00
|
|
|
'FileCacheBase' => 'includes/cache/FileCacheBase.php',
|
2011-04-25 21:33:38 +00:00
|
|
|
'FileDependency' => 'includes/cache/CacheDependency.php',
|
2012-01-10 07:39:51 +00:00
|
|
|
'GenderCache' => 'includes/cache/GenderCache.php',
|
2011-04-25 21:33:38 +00:00
|
|
|
'GlobalDependency' => 'includes/cache/CacheDependency.php',
|
|
|
|
|
'HTMLFileCache' => 'includes/cache/HTMLFileCache.php',
|
2011-04-25 21:38:48 +00:00
|
|
|
'LinkBatch' => 'includes/cache/LinkBatch.php',
|
|
|
|
|
'LinkCache' => 'includes/cache/LinkCache.php',
|
2013-10-05 03:47:33 +00:00
|
|
|
'MapCacheLRU' => 'includes/cache/MapCacheLRU.php',
|
2011-04-25 21:38:48 +00:00
|
|
|
'MessageCache' => 'includes/cache/MessageCache.php',
|
2011-09-29 08:18:20 +00:00
|
|
|
'ObjectFileCache' => 'includes/cache/ObjectFileCache.php',
|
2012-06-30 03:08:06 +00:00
|
|
|
'ProcessCacheLRU' => 'includes/cache/ProcessCacheLRU.php',
|
2011-10-02 17:53:33 +00:00
|
|
|
'ResourceFileCache' => 'includes/cache/ResourceFileCache.php',
|
2011-04-25 21:33:38 +00:00
|
|
|
|
2013-10-17 00:51:49 +00:00
|
|
|
# includes/changes
|
|
|
|
|
'ChangesList' => 'includes/changes/ChangesList.php',
|
|
|
|
|
'EnhancedChangesList' => 'includes/changes/EnhancedChangesList.php',
|
|
|
|
|
'OldChangesList' => 'includes/changes/OldChangesList.php',
|
|
|
|
|
'RCCacheEntry' => 'includes/changes/RCCacheEntry.php',
|
|
|
|
|
'RecentChange' => 'includes/changes/RecentChange.php',
|
|
|
|
|
|
2012-12-12 00:04:03 +00:00
|
|
|
# includes/clientpool
|
|
|
|
|
'RedisConnectionPool' => 'includes/clientpool/RedisConnectionPool.php',
|
|
|
|
|
'RedisConnRef' => 'includes/clientpool/RedisConnectionPool.php',
|
|
|
|
|
|
2013-12-20 22:34:49 +00:00
|
|
|
# includes/composer
|
|
|
|
|
'ComposerPackageModifier' => 'includes/composer/ComposerPackageModifier.php',
|
|
|
|
|
'ComposerVersionNormalizer' => 'includes/composer/ComposerVersionNormalizer.php',
|
|
|
|
|
|
2014-01-24 01:45:11 +00:00
|
|
|
# includes/config
|
|
|
|
|
'Config' => 'includes/config/Config.php',
|
|
|
|
|
'GlobalConfig' => 'includes/config/GlobalConfig.php',
|
|
|
|
|
|
2013-11-01 04:59:17 +00:00
|
|
|
# includes/content
|
|
|
|
|
'AbstractContent' => 'includes/content/AbstractContent.php',
|
|
|
|
|
'ContentHandler' => 'includes/content/ContentHandler.php',
|
|
|
|
|
'Content' => 'includes/content/Content.php',
|
|
|
|
|
'CssContentHandler' => 'includes/content/CssContentHandler.php',
|
|
|
|
|
'CssContent' => 'includes/content/CssContent.php',
|
|
|
|
|
'JavaScriptContentHandler' => 'includes/content/JavaScriptContentHandler.php',
|
|
|
|
|
'JavaScriptContent' => 'includes/content/JavaScriptContent.php',
|
|
|
|
|
'MessageContent' => 'includes/content/MessageContent.php',
|
|
|
|
|
'MWContentSerializationException' => 'includes/content/ContentHandler.php',
|
|
|
|
|
'TextContentHandler' => 'includes/content/TextContentHandler.php',
|
|
|
|
|
'TextContent' => 'includes/content/TextContent.php',
|
|
|
|
|
'WikitextContentHandler' => 'includes/content/WikitextContentHandler.php',
|
|
|
|
|
'WikitextContent' => 'includes/content/WikitextContent.php',
|
|
|
|
|
|
2011-09-15 17:42:17 +00:00
|
|
|
# includes/context
|
|
|
|
|
'ContextSource' => 'includes/context/ContextSource.php',
|
|
|
|
|
'DerivativeContext' => 'includes/context/DerivativeContext.php',
|
|
|
|
|
'IContextSource' => 'includes/context/IContextSource.php',
|
|
|
|
|
'RequestContext' => 'includes/context/RequestContext.php',
|
|
|
|
|
|
2012-05-23 01:27:29 +00:00
|
|
|
# includes/dao
|
|
|
|
|
'IDBAccessObject' => 'includes/dao/IDBAccessObject.php',
|
2012-11-19 09:32:51 +00:00
|
|
|
'DBAccessBase' => 'includes/dao/DBAccessBase.php',
|
2012-05-23 01:27:29 +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',
|
2013-04-11 21:08:45 +00:00
|
|
|
'ChronologyProtector' => 'includes/db/ChronologyProtector.php',
|
2010-12-28 00:44:16 +00:00
|
|
|
'CloneDatabase' => 'includes/db/CloneDatabase.php',
|
2009-06-12 17:59:04 +00:00
|
|
|
'DatabaseBase' => 'includes/db/Database.php',
|
2013-11-16 02:06:01 +00:00
|
|
|
'DatabaseMssql' => 'includes/db/DatabaseMssql.php',
|
2009-06-15 18:39:41 +00:00
|
|
|
'DatabaseMysql' => 'includes/db/DatabaseMysql.php',
|
2013-05-03 01:39:16 +00:00
|
|
|
'DatabaseMysqlBase' => 'includes/db/DatabaseMysqlBase.php',
|
2013-10-17 00:03:01 +00:00
|
|
|
'DatabaseMysqli' => 'includes/db/DatabaseMysqli.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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'DBAccessError' => 'includes/db/LBFactory.php',
|
2011-05-25 17:03:15 +00:00
|
|
|
'DBConnectionError' => 'includes/db/DatabaseError.php',
|
2013-07-06 06:19:11 +00:00
|
|
|
'DBConnRef' => 'includes/db/LoadBalancer.php',
|
2011-05-25 17:03:15 +00:00
|
|
|
'DBError' => 'includes/db/DatabaseError.php',
|
2013-10-13 12:09:36 +00:00
|
|
|
'DBExpectedError' => 'includes/db/DatabaseError.php',
|
2011-05-25 17:06:04 +00:00
|
|
|
'DBObject' => 'includes/db/DatabaseUtility.php',
|
2013-07-18 03:37:38 +00:00
|
|
|
'IDatabase' => 'includes/db/Database.php',
|
2012-06-05 22:58:54 +00:00
|
|
|
'IORMRow' => 'includes/db/IORMRow.php',
|
|
|
|
|
'IORMTable' => 'includes/db/IORMTable.php',
|
2011-06-23 03:14:11 +00:00
|
|
|
'DBMasterPos' => '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',
|
2008-07-24 12:45:23 +00:00
|
|
|
'LBFactory' => 'includes/db/LBFactory.php',
|
2013-11-27 10:17:06 +00:00
|
|
|
'LBFactoryFake' => 'includes/db/LBFactory.php',
|
|
|
|
|
'LBFactoryMulti' => 'includes/db/LBFactoryMulti.php',
|
|
|
|
|
'LBFactorySimple' => 'includes/db/LBFactory.php',
|
|
|
|
|
'LBFactorySingle' => 'includes/db/LBFactorySingle.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',
|
2013-11-27 10:17:06 +00:00
|
|
|
'LoadBalancerSingle' => 'includes/db/LBFactorySingle.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'LoadMonitor' => 'includes/db/LoadMonitor.php',
|
2013-11-27 10:17:06 +00:00
|
|
|
'LoadMonitorMySQL' => 'includes/db/LoadMonitor.php',
|
|
|
|
|
'LoadMonitorNull' => 'includes/db/LoadMonitor.php',
|
2013-11-16 02:06:01 +00:00
|
|
|
'MssqlField' => 'includes/db/DatabaseMssql.php',
|
2014-01-03 03:04:26 +00:00
|
|
|
'MssqlBlob' => 'includes/db/DatabaseMssql.php',
|
|
|
|
|
'MssqlResultWrapper' => 'includes/db/DatabaseMssql.php',
|
2013-05-03 01:39:16 +00:00
|
|
|
'MySQLField' => 'includes/db/DatabaseMysqlBase.php',
|
|
|
|
|
'MySQLMasterPos' => 'includes/db/DatabaseMysqlBase.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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'ORMIterator' => 'includes/db/ORMIterator.php',
|
2012-03-22 01:56:32 +00:00
|
|
|
'ORMResult' => 'includes/db/ORMResult.php',
|
|
|
|
|
'ORMRow' => 'includes/db/ORMRow.php',
|
|
|
|
|
'ORMTable' => 'includes/db/ORMTable.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'PostgresField' => 'includes/db/DatabasePostgres.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'PostgresTransactionState' => 'includes/db/DatabasePostgres.php',
|
2011-05-25 17:06:04 +00:00
|
|
|
'ResultWrapper' => 'includes/db/DatabaseUtility.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'SavepointPostgres' => 'includes/db/DatabasePostgres.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SQLiteField' => 'includes/db/DatabaseSqlite.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2011-12-04 18:29:57 +00:00
|
|
|
# includes/debug
|
|
|
|
|
'MWDebug' => 'includes/debug/Debug.php',
|
|
|
|
|
|
2013-11-01 04:59:17 +00:00
|
|
|
# includes/deferred
|
|
|
|
|
'DataUpdate' => 'includes/deferred/DataUpdate.php',
|
|
|
|
|
'DeferrableUpdate' => 'includes/deferred/DeferredUpdates.php',
|
|
|
|
|
'DeferredUpdates' => 'includes/deferred/DeferredUpdates.php',
|
|
|
|
|
'HTMLCacheUpdate' => 'includes/deferred/HTMLCacheUpdate.php',
|
|
|
|
|
'LinksDeletionUpdate' => 'includes/deferred/LinksUpdate.php',
|
|
|
|
|
'LinksUpdate' => 'includes/deferred/LinksUpdate.php',
|
|
|
|
|
'MWCallableUpdate' => 'includes/deferred/CallableUpdate.php',
|
|
|
|
|
'SearchUpdate' => 'includes/deferred/SearchUpdate.php',
|
|
|
|
|
'SiteStatsUpdate' => 'includes/deferred/SiteStatsUpdate.php',
|
|
|
|
|
'SqlDataUpdate' => 'includes/deferred/SqlDataUpdate.php',
|
|
|
|
|
'SquidUpdate' => 'includes/deferred/SquidUpdate.php',
|
|
|
|
|
'ViewCountUpdate' => 'includes/deferred/ViewCountUpdate.php',
|
|
|
|
|
|
2008-08-25 20:19:00 +00:00
|
|
|
# includes/diff
|
2013-10-29 22:25:28 +00:00
|
|
|
'DiffEngine' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'DiffOp' => 'includes/diff/DairikiDiff.php',
|
2013-11-20 19:28:14 +00:00
|
|
|
'DiffOpAdd' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'DiffOpChange' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'DiffOpCopy' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'DiffOpDelete' => 'includes/diff/DairikiDiff.php',
|
2013-11-20 19:24:48 +00:00
|
|
|
'HWLDFWordAccumulator' => 'includes/diff/DairikiDiff.php',
|
2013-10-29 22:25:28 +00:00
|
|
|
'ArrayDiffFormatter' => 'includes/diff/ArrayDiffFormatter.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'Diff' => 'includes/diff/DairikiDiff.php',
|
|
|
|
|
'DifferenceEngine' => 'includes/diff/DifferenceEngine.php',
|
2013-10-29 22:25:28 +00:00
|
|
|
'DiffFormatter' => 'includes/diff/DiffFormatter.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',
|
2013-10-29 22:25:28 +00:00
|
|
|
'TableDiffFormatter' => 'includes/diff/TableDiffFormatter.php',
|
|
|
|
|
'UnifiedDiffFormatter' => 'includes/diff/UnifiedDiffFormatter.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
|
|
|
|
2014-02-24 20:13:49 +00:00
|
|
|
# includes/exception
|
|
|
|
|
'UserBlockedError' => 'includes/exception/UserBlockedError.php',
|
|
|
|
|
'UserNotLoggedIn' => 'includes/exception/UserNotLoggedIn.php',
|
|
|
|
|
'ThrottledError' => 'includes/exception/ThrottledError.php',
|
|
|
|
|
'ReadOnlyError' => 'includes/exception/ReadOnlyError.php',
|
|
|
|
|
'PermissionsError' => 'includes/exception/PermissionsError.php',
|
|
|
|
|
'MWException' => 'includes/exception/MWException.php',
|
|
|
|
|
'MWExceptionHandler' => 'includes/exception/MWExceptionHandler.php',
|
|
|
|
|
'HttpError' => 'includes/exception/HttpError.php',
|
|
|
|
|
'BadTitleError' => 'includes/exception/BadTitleError.php',
|
|
|
|
|
'ErrorPageError' => 'includes/exception/ErrorPageError.php',
|
|
|
|
|
'FatalError' => 'includes/exception/FatalError.php',
|
|
|
|
|
|
2013-04-23 14:48:24 +00:00
|
|
|
# includes/externalstore
|
|
|
|
|
'ExternalStore' => 'includes/externalstore/ExternalStore.php',
|
|
|
|
|
'ExternalStoreDB' => 'includes/externalstore/ExternalStoreDB.php',
|
|
|
|
|
'ExternalStoreHttp' => 'includes/externalstore/ExternalStoreHttp.php',
|
|
|
|
|
'ExternalStoreMedium' => 'includes/externalstore/ExternalStoreMedium.php',
|
|
|
|
|
'ExternalStoreMwstore' => 'includes/externalstore/ExternalStoreMwstore.php',
|
|
|
|
|
|
2012-08-20 14:55:28 +00:00
|
|
|
# includes/filebackend
|
|
|
|
|
'FileBackendGroup' => 'includes/filebackend/FileBackendGroup.php',
|
|
|
|
|
'FileBackend' => 'includes/filebackend/FileBackend.php',
|
2013-06-16 06:01:47 +00:00
|
|
|
'FileBackendError' => 'includes/filebackend/FileBackend.php',
|
2013-11-23 20:28:34 +00:00
|
|
|
'FileBackendException' => 'includes/filebackend/FileBackend.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'FileBackendStore' => 'includes/filebackend/FileBackendStore.php',
|
|
|
|
|
'FileBackendStoreShardListIterator' => 'includes/filebackend/FileBackendStore.php',
|
|
|
|
|
'FileBackendStoreShardDirIterator' => 'includes/filebackend/FileBackendStore.php',
|
|
|
|
|
'FileBackendStoreShardFileIterator' => 'includes/filebackend/FileBackendStore.php',
|
|
|
|
|
'FileBackendMultiWrite' => 'includes/filebackend/FileBackendMultiWrite.php',
|
|
|
|
|
'FileBackendStoreOpHandle' => 'includes/filebackend/FileBackendStore.php',
|
|
|
|
|
'FSFile' => 'includes/filebackend/FSFile.php',
|
|
|
|
|
'FSFileBackend' => 'includes/filebackend/FSFileBackend.php',
|
|
|
|
|
'FSFileBackendList' => 'includes/filebackend/FSFileBackend.php',
|
|
|
|
|
'FSFileBackendDirList' => 'includes/filebackend/FSFileBackend.php',
|
|
|
|
|
'FSFileBackendFileList' => 'includes/filebackend/FSFileBackend.php',
|
|
|
|
|
'FSFileOpHandle' => 'includes/filebackend/FSFileBackend.php',
|
2013-12-19 01:41:02 +00:00
|
|
|
'MemoryFileBackend' => 'includes/filebackend/MemoryFileBackend.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'SwiftFileBackend' => 'includes/filebackend/SwiftFileBackend.php',
|
|
|
|
|
'SwiftFileBackendList' => 'includes/filebackend/SwiftFileBackend.php',
|
|
|
|
|
'SwiftFileBackendDirList' => 'includes/filebackend/SwiftFileBackend.php',
|
|
|
|
|
'SwiftFileBackendFileList' => 'includes/filebackend/SwiftFileBackend.php',
|
|
|
|
|
'SwiftFileOpHandle' => 'includes/filebackend/SwiftFileBackend.php',
|
|
|
|
|
'TempFSFile' => 'includes/filebackend/TempFSFile.php',
|
|
|
|
|
'FileJournal' => 'includes/filebackend/filejournal/FileJournal.php',
|
|
|
|
|
'DBFileJournal' => 'includes/filebackend/filejournal/DBFileJournal.php',
|
|
|
|
|
'NullFileJournal' => 'includes/filebackend/filejournal/FileJournal.php',
|
|
|
|
|
'LockManagerGroup' => 'includes/filebackend/lockmanager/LockManagerGroup.php',
|
|
|
|
|
'LockManager' => 'includes/filebackend/lockmanager/LockManager.php',
|
2012-12-14 21:06:39 +00:00
|
|
|
'ScopedLock' => 'includes/filebackend/lockmanager/ScopedLock.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'FSLockManager' => 'includes/filebackend/lockmanager/FSLockManager.php',
|
|
|
|
|
'DBLockManager' => 'includes/filebackend/lockmanager/DBLockManager.php',
|
|
|
|
|
'MemcLockManager' => 'includes/filebackend/lockmanager/MemcLockManager.php',
|
2013-02-01 06:28:55 +00:00
|
|
|
'QuorumLockManager' => 'includes/filebackend/lockmanager/QuorumLockManager.php',
|
2013-04-20 22:49:30 +00:00
|
|
|
'MySqlLockManager' => 'includes/filebackend/lockmanager/DBLockManager.php',
|
|
|
|
|
'PostgreSqlLockManager' => 'includes/filebackend/lockmanager/DBLockManager.php',
|
|
|
|
|
'RedisLockManager' => 'includes/filebackend/lockmanager/RedisLockManager.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'NullLockManager' => 'includes/filebackend/lockmanager/LockManager.php',
|
|
|
|
|
'FileOp' => 'includes/filebackend/FileOp.php',
|
|
|
|
|
'FileOpBatch' => 'includes/filebackend/FileOpBatch.php',
|
|
|
|
|
'StoreFileOp' => 'includes/filebackend/FileOp.php',
|
|
|
|
|
'CopyFileOp' => 'includes/filebackend/FileOp.php',
|
|
|
|
|
'MoveFileOp' => 'includes/filebackend/FileOp.php',
|
|
|
|
|
'DeleteFileOp' => 'includes/filebackend/FileOp.php',
|
|
|
|
|
'CreateFileOp' => 'includes/filebackend/FileOp.php',
|
2012-10-24 08:18:29 +00:00
|
|
|
'DescribeFileOp' => 'includes/filebackend/FileOp.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'NullFileOp' => 'includes/filebackend/FileOp.php',
|
|
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/filerepo
|
|
|
|
|
'FileRepo' => 'includes/filerepo/FileRepo.php',
|
|
|
|
|
'FileRepoStatus' => 'includes/filerepo/FileRepoStatus.php',
|
|
|
|
|
'ForeignAPIRepo' => 'includes/filerepo/ForeignAPIRepo.php',
|
|
|
|
|
'ForeignDBRepo' => 'includes/filerepo/ForeignDBRepo.php',
|
|
|
|
|
'ForeignDBViaLBRepo' => 'includes/filerepo/ForeignDBViaLBRepo.php',
|
|
|
|
|
'FSRepo' => 'includes/filerepo/FSRepo.php',
|
|
|
|
|
'LocalRepo' => 'includes/filerepo/LocalRepo.php',
|
2011-10-15 21:38:53 +00:00
|
|
|
'NullRepo' => 'includes/filerepo/NullRepo.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'RepoGroup' => 'includes/filerepo/RepoGroup.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'TempFileRepo' => 'includes/filerepo/FileRepo.php',
|
2011-12-27 13:34:28 +00:00
|
|
|
|
2011-11-16 22:55:48 +00:00
|
|
|
# includes/filerepo/file
|
|
|
|
|
'ArchivedFile' => 'includes/filerepo/file/ArchivedFile.php',
|
|
|
|
|
'File' => 'includes/filerepo/file/File.php',
|
|
|
|
|
'ForeignAPIFile' => 'includes/filerepo/file/ForeignAPIFile.php',
|
|
|
|
|
'ForeignDBFile' => 'includes/filerepo/file/ForeignDBFile.php',
|
|
|
|
|
'LocalFile' => 'includes/filerepo/file/LocalFile.php',
|
|
|
|
|
'LocalFileDeleteBatch' => 'includes/filerepo/file/LocalFile.php',
|
|
|
|
|
'LocalFileMoveBatch' => 'includes/filerepo/file/LocalFile.php',
|
|
|
|
|
'LocalFileRestoreBatch' => 'includes/filerepo/file/LocalFile.php',
|
|
|
|
|
'OldLocalFile' => 'includes/filerepo/file/OldLocalFile.php',
|
|
|
|
|
'UnregisteredLocalFile' => 'includes/filerepo/file/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-06-14 03:09:49 +00:00
|
|
|
'InstallDocFormatter' => 'includes/installer/InstallDocFormatter.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'Installer' => 'includes/installer/Installer.php',
|
2010-05-07 12:25:01 +00:00
|
|
|
'LocalSettingsGenerator' => 'includes/installer/LocalSettingsGenerator.php',
|
2014-01-03 03:04:26 +00:00
|
|
|
'MssqlInstaller' => 'includes/installer/MssqlInstaller.php',
|
|
|
|
|
'MssqlUpdater' => 'includes/installer/MssqlUpdater.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',
|
|
|
|
|
'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
|
2014-01-27 21:28:47 +00:00
|
|
|
'IJobSpecification' => 'includes/job/JobSpecification.php',
|
2012-06-25 11:39:29 +00:00
|
|
|
'Job' => 'includes/job/Job.php',
|
2012-08-29 00:01:31 +00:00
|
|
|
'JobQueue' => 'includes/job/JobQueue.php',
|
2013-05-22 19:12:21 +00:00
|
|
|
'JobQueueAggregator' => 'includes/job/aggregator/JobQueueAggregator.php',
|
|
|
|
|
'JobQueueAggregatorMemc' => 'includes/job/aggregator/JobQueueAggregatorMemc.php',
|
|
|
|
|
'JobQueueAggregatorRedis' => 'includes/job/aggregator/JobQueueAggregatorRedis.php',
|
2012-08-29 00:01:31 +00:00
|
|
|
'JobQueueDB' => 'includes/job/JobQueueDB.php',
|
2013-06-19 03:09:10 +00:00
|
|
|
'JobQueueConnectionError' => 'includes/job/JobQueue.php',
|
|
|
|
|
'JobQueueError' => 'includes/job/JobQueue.php',
|
2012-08-29 00:01:31 +00:00
|
|
|
'JobQueueGroup' => 'includes/job/JobQueueGroup.php',
|
2013-02-28 22:21:28 +00:00
|
|
|
'JobQueueFederated' => 'includes/job/JobQueueFederated.php',
|
2012-12-12 00:04:03 +00:00
|
|
|
'JobQueueRedis' => 'includes/job/JobQueueRedis.php',
|
2014-01-27 21:28:47 +00:00
|
|
|
'JobSpecification' => 'includes/job/JobSpecification.php',
|
2012-10-23 00:23:48 +00:00
|
|
|
|
|
|
|
|
# includes/job/jobs
|
|
|
|
|
'DoubleRedirectJob' => 'includes/job/jobs/DoubleRedirectJob.php',
|
2012-11-08 22:01:40 +00:00
|
|
|
'DuplicateJob' => 'includes/job/jobs/DuplicateJob.php',
|
2012-10-23 00:23:48 +00:00
|
|
|
'EmaillingJob' => 'includes/job/jobs/EmaillingJob.php',
|
|
|
|
|
'EnotifNotifyJob' => 'includes/job/jobs/EnotifNotifyJob.php',
|
|
|
|
|
'HTMLCacheUpdateJob' => 'includes/job/jobs/HTMLCacheUpdateJob.php',
|
2012-10-31 00:25:36 +00:00
|
|
|
'NullJob' => 'includes/job/jobs/NullJob.php',
|
2012-10-23 00:23:48 +00:00
|
|
|
'RefreshLinksJob' => 'includes/job/jobs/RefreshLinksJob.php',
|
2013-11-19 00:12:12 +00:00
|
|
|
'RefreshLinksJob2' => 'includes/job/jobs/RefreshLinksJob2.php',
|
2012-10-23 00:23:48 +00:00
|
|
|
'UploadFromUrlJob' => 'includes/job/jobs/UploadFromUrlJob.php',
|
2013-02-13 21:25:37 +00:00
|
|
|
'AssembleUploadChunksJob' => 'includes/job/jobs/AssembleUploadChunksJob.php',
|
|
|
|
|
'PublishStashedFileJob' => 'includes/job/jobs/PublishStashedFileJob.php',
|
2010-06-17 22:28:06 +00:00
|
|
|
|
2013-11-19 00:12:12 +00:00
|
|
|
# includes/job/utils
|
|
|
|
|
'BacklinkJobUtils' => 'includes/job/utils/BacklinkJobUtils.php',
|
|
|
|
|
|
2011-04-17 23:42:22 +00:00
|
|
|
# includes/json
|
|
|
|
|
'FormatJson' => 'includes/json/FormatJson.php',
|
|
|
|
|
|
2010-08-26 23:22:17 +00:00
|
|
|
# includes/libs
|
2011-04-17 23:42:22 +00:00
|
|
|
'CSSJanus' => 'includes/libs/CSSJanus.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'CSSJanus_Tokenizer' => 'includes/libs/CSSJanus.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'CSSMin' => 'includes/libs/CSSMin.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'GenericArrayObject' => 'includes/libs/GenericArrayObject.php',
|
2013-12-31 23:31:26 +00:00
|
|
|
'HashRing' => 'includes/libs/HashRing.php',
|
2011-07-04 21:01:19 +00:00
|
|
|
'HttpStatus' => 'includes/libs/HttpStatus.php',
|
2010-08-26 23:31:00 +00:00
|
|
|
'IEContentAnalyzer' => 'includes/libs/IEContentAnalyzer.php',
|
2011-06-06 11:59:20 +00:00
|
|
|
'IEUrlExtension' => 'includes/libs/IEUrlExtension.php',
|
2013-12-31 23:33:15 +00:00
|
|
|
'MappedIterator' => 'includes/libs/MappedIterator.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'JavaScriptMinifier' => 'includes/libs/JavaScriptMinifier.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'JSCompilerContext' => 'includes/libs/jsminplus.php',
|
2011-07-06 20:02:10 +00:00
|
|
|
'JSMinPlus' => 'includes/libs/jsminplus.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'JSNode' => 'includes/libs/jsminplus.php',
|
2011-07-06 20:02:10 +00:00
|
|
|
'JSParser' => 'includes/libs/jsminplus.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'JSToken' => 'includes/libs/jsminplus.php',
|
|
|
|
|
'JSTokenizer' => 'includes/libs/jsminplus.php',
|
2013-12-08 23:19:00 +00:00
|
|
|
'MultiHttpClient' => 'includes/libs/MultiHttpClient.php',
|
2014-01-03 01:07:10 +00:00
|
|
|
'MWMessagePack' => 'includes/libs/MWMessagePack.php',
|
2014-01-03 06:05:07 +00:00
|
|
|
'RunningStat' => 'includes/libs/RunningStat.php',
|
2013-12-17 07:09:21 +00:00
|
|
|
'ScopedCallback' => 'includes/libs/ScopedCallback.php',
|
Introduce includes/utils directory
These are classes that provide facilities for use by any caller, are
independent of user interface, and have a limited set of dependencies on
the rest of MediaWiki. See the README file for a more precise
definition.
These classes cannot go in includes/libs because of a dependency on the
MediaWiki framework, such as wfDebug() or MWException, but they are
otherwise similar. I thought it would be useful to put them in their own
directory, to make them more discoverable, and as part of a general
program of reducing clutter in the base includes/ directory.
I've probably missed a few classes which could be included here, but the
following classes were considered and were rejected for now:
* Fallback: single caller only
* GitInfo: getViewers() has inappropriate dependencies
* HttpFunctions: depends on configuration, $wgTitle
* PoolCounter: depends on configuration
* CacheHelper: depends on IContextSource, wfMemc()
Also moved a couple of classes into libs/ instead, where that seemed to
be more appropriate.
Change-Id: I274cff805b7d694b728a89b764a049cd62d320fe
2013-11-01 06:17:45 +00:00
|
|
|
'ScopedPHPTimeout' => 'includes/libs/ScopedPHPTimeout.php',
|
|
|
|
|
'XmlTypeCheck' => 'includes/libs/XmlTypeCheck.php',
|
2010-12-23 21:49:01 +00:00
|
|
|
|
Support LESS stylesheets in ResourceLoader
This patch adds support for the LESS stylesheet language to ResourceLoader.
LESS is a stylesheet language that compiles into CSS. The patch includes
lessphp, a LESS compiler implemented in PHP. The rationale for choosing LESS is
explained in a MediaWiki RFC which accompanies this patch, available at
<https://www.mediawiki.org/wiki/Requests_for_comment/LESS>.
LESS support is provided for ResourceLoader file modules. It is triggered by
the presence of the '.less' extension in stylesheet filenames. LESS files are
compiled by lessc, and the resultant CSS is subjected to the standard set of
transformations (CSSJanus & CSSMin). The immediate result of LESS compilation
is encoded as an array, which includes the list of LESS files that were
compiled and their mtimes. This array is cached. Cache invalidation is
performed by comparing the cached mtimes with the mtimes of the files on disk.
If the compiler itself throws an exception, ResourceLoader constructs a
compilation result which consists of the error message encoded as a CSS
comment. Failed compilation results are cached too, but with an expiration time
of five minutes. The expiration time is required because the full list of
referenced files is not known.
Three configuration variables configure the global environment for LESS
modules: $wgResourceLoaderLESSVars, $wgResourceLoaderLESSFunctions, and
$wgResourceLoaderLESSImportPaths. $wgResourceLoaderLESSVars maps variable names
to CSS values, specified as strings. Variables declared in this array are
available in all LESS files. $wgResourceLoaderLESSFunctions is similar, except
it maps custom function names to PHP callables. These functions can be called
from within LESS to transform values. Read more about custom functions at
<http://leafo.net/lessphp/docs/#custom_functions>. Finally,
$wgResourceLoaderLESSImportPaths specifies file system paths in addition to the
current module's path where the LESS compiler should look up files referenced
in @import statements.
The issue of handling of /* @embed */ and /* @noflip */ annotations is left
unresolved. Earlier versions of this patch included an @embed analog
implemented as a LESS custom function, but there was enough ambiguity about
whether the strategy it took was optimal to merit discussing it in a separate,
follow-up patch.
Bug: 40964
Change-Id: Id052a04dd2f76a1f4aef39fbd454bd67f5fd282f
2013-08-11 16:40:20 +00:00
|
|
|
# includes/libs/lessphp
|
|
|
|
|
'lessc' => 'includes/libs/lessc.inc.php',
|
|
|
|
|
'lessc_parser' => 'includes/libs/lessc.inc.php',
|
|
|
|
|
'lessc_formatter_classic' => 'includes/libs/lessc.inc.php',
|
|
|
|
|
'lessc_formatter_compressed' => 'includes/libs/lessc.inc.php',
|
|
|
|
|
'lessc_formatter_lessjs' => 'includes/libs/lessc.inc.php',
|
|
|
|
|
|
2011-09-07 15:32:37 +00:00
|
|
|
# includes/logging
|
2011-09-20 08:39:29 +00:00
|
|
|
'DatabaseLogEntry' => 'includes/logging/LogEntry.php',
|
2013-03-15 14:25:33 +00:00
|
|
|
'DeleteLogFormatter' => 'includes/logging/DeleteLogFormatter.php',
|
2011-09-20 08:39:29 +00:00
|
|
|
'LegacyLogFormatter' => 'includes/logging/LogFormatter.php',
|
2011-09-07 15:32:37 +00:00
|
|
|
'LogEntry' => 'includes/logging/LogEntry.php',
|
2011-12-15 16:23:33 +00:00
|
|
|
'LogEventsList' => 'includes/logging/LogEventsList.php',
|
2011-09-07 15:32:37 +00:00
|
|
|
'LogEntryBase' => 'includes/logging/LogEntry.php',
|
|
|
|
|
'LogFormatter' => 'includes/logging/LogFormatter.php',
|
2011-12-15 16:23:33 +00:00
|
|
|
'LogPage' => 'includes/logging/LogPage.php',
|
2012-01-20 09:44:39 +00:00
|
|
|
'LogPager' => 'includes/logging/LogPager.php',
|
2011-09-20 08:39:29 +00:00
|
|
|
'ManualLogEntry' => 'includes/logging/LogEntry.php',
|
2013-03-15 14:25:33 +00:00
|
|
|
'MoveLogFormatter' => 'includes/logging/MoveLogFormatter.php',
|
|
|
|
|
'NewUsersLogFormatter' => 'includes/logging/NewUsersLogFormatter.php',
|
2011-09-20 08:39:29 +00:00
|
|
|
'PatrolLog' => 'includes/logging/PatrolLog.php',
|
2013-03-15 14:25:33 +00:00
|
|
|
'PatrolLogFormatter' => 'includes/logging/PatrolLogFormatter.php',
|
2011-09-20 08:39:29 +00:00
|
|
|
'RCDatabaseLogEntry' => 'includes/logging/LogEntry.php',
|
2013-03-15 14:25:33 +00:00
|
|
|
'RightsLogFormatter' => 'includes/logging/RightsLogFormatter.php',
|
2011-09-07 15:32:37 +00:00
|
|
|
|
New more slick gallery display
This extension adds a "mode" parameter to the gallery
tag, allowing different formats for the gallery tag
(galleries in the ui can be controlled by a global)
The added modes are:
*traditional - The original gallery
*nolines - Like the original, no borders, less padding
*packed - All images aligned by having same height.
JS also justifies the images.
(I think this one is the one that will go over best
with users.)
*packed-overlay - like packed, but caption goes over
top the image in a transloucent box.
*packed-hover - like packed-overlay, but caption only
visible on hover. Degrades gracefully on screen
readers, and falls back to packed-overlay if
you are using a touch screen. I kind of like
this mode when the caption is not that important
(ex a category where its just the file name).
This also adds a hook to allow people to make their
own gallery version. I believe there would be interest
in this, as different people have done different
experiments. For example:
* Wikia: http://community.wikia.com/wiki/Help:Galleries,_Slideshows,_and_Sliders/wikitext
* Wikinews: https://en.wikinews.org/wiki/Template:Picture_select
What I would like to see for this patch, is first it gets
enabled, with the default still "traditional". After
about a month or two we consult with users. If feedback
is positive, we change the default mode to one of the
others (probably "packed").
Adds a "mode" parameter to gallery for different
mode, including one 'height-constrained-overlay'
which looks much more like other modern websites.
Note: This makes one change to the old gallery format.
It makes Nonexistent files be rendered like thumbnails
(i.e. they are rendered with a little grey border).
One thing I'm slightly worried about with this patch,
is that I added an option to MediaTransformOutput::toHtml
to override the width attribute. I'm not sure if that
is the best approach, and would appreciate thoughts
on that.
This should be merged at the same time as Ie82c1548
Change-Id: I33462a8b52502ed76aeb163b66e3704c8618ba23
2013-06-08 04:47:07 +00:00
|
|
|
# Image gallery
|
|
|
|
|
|
|
|
|
|
'ImageGallery' => 'includes/gallery/TraditionalImageGallery.php',
|
|
|
|
|
'ImageGalleryBase' => 'includes/gallery/ImageGalleryBase.php',
|
|
|
|
|
'NolinesImageGallery' => 'includes/gallery/NolinesImageGallery.php',
|
|
|
|
|
'TraditionalImageGallery' => 'includes/gallery/TraditionalImageGallery.php',
|
|
|
|
|
'PackedImageGallery' => 'includes/gallery/PackedImageGallery.php',
|
|
|
|
|
'PackedHoverImageGallery' => 'includes/gallery/PackedOverlayImageGallery.php',
|
|
|
|
|
'PackedOverlayImageGallery' => 'includes/gallery/PackedOverlayImageGallery.php',
|
|
|
|
|
|
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-12-27 13:34:28 +00:00
|
|
|
'DjVuImage' => 'includes/media/DjVuImage.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'Exif' => 'includes/media/Exif.php',
|
2011-12-27 13:34:28 +00:00
|
|
|
'ExifBitmapHandler' => 'includes/media/ExifBitmap.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'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',
|
2012-07-23 18:59:38 +00:00
|
|
|
'ImageHandler' => 'includes/media/ImageHandler.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'IPTC' => 'includes/media/IPTC.php',
|
|
|
|
|
'JpegHandler' => 'includes/media/Jpeg.php',
|
|
|
|
|
'JpegMetadataExtractor' => 'includes/media/JpegMetadataExtractor.php',
|
2012-07-23 18:59:38 +00:00
|
|
|
'MediaHandler' => 'includes/media/MediaHandler.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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'SVGReader' => '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-12-27 13:34:28 +00:00
|
|
|
'XCFHandler' => 'includes/media/XCF.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',
|
* 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',
|
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',
|
2012-05-11 05:45:23 +00:00
|
|
|
'MemcachedBagOStuff' => 'includes/objectcache/MemcachedBagOStuff.php',
|
|
|
|
|
'MemcachedPeclBagOStuff' => 'includes/objectcache/MemcachedPeclBagOStuff.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',
|
2012-08-20 14:55:28 +00:00
|
|
|
'ObjectCacheSessionHandler' => 'includes/objectcache/ObjectCacheSessionHandler.php',
|
|
|
|
|
'RedisBagOStuff' => 'includes/objectcache/RedisBagOStuff.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
|
2012-08-20 14:55:28 +00:00
|
|
|
'CacheTime' => 'includes/parser/CacheTime.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',
|
2011-04-17 23:42:22 +00:00
|
|
|
'MWTidy' => 'includes/parser/Tidy.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'MWTidyWrapper' => 'includes/parser/Tidy.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',
|
|
|
|
|
'PPDStackElement' => 'includes/parser/Preprocessor_DOM.php',
|
|
|
|
|
'PPDStackElement_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
2011-06-02 02:44:33 +00:00
|
|
|
'PPDStack_Hash' => 'includes/parser/Preprocessor_Hash.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2011-06-02 02:44:33 +00:00
|
|
|
'Parser' => 'includes/parser/Parser.php',
|
|
|
|
|
'ParserCache' => 'includes/parser/ParserCache.php',
|
|
|
|
|
'ParserOptions' => 'includes/parser/ParserOptions.php',
|
|
|
|
|
'ParserOutput' => 'includes/parser/ParserOutput.php',
|
|
|
|
|
'Parser_DiffTest' => 'includes/parser/Parser_DiffTest.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
Add ProfilerMwprof
ProfilerMwprof is similar to ProfilerSimpleUDP in that accumulated profiling
samples are emitted to a remote host using UDP. Profiling data for sections
that are called multiple times are aggregating using the RunningStat class I
introduced in Ifedda276d; this provides the ability to compute timing variance
across multiple requests without storing individual values for a second pass
through the data.
Entries are serialized into MessagePack arrays, using the implementation added
in Id2833c5a9. The first element of each array is an entry type specifier.
Currently two types exist: TYPE_SINGLE (single sample; no statistical moments)
and TYPE_RUNNING (aggregated entry with statistical moments). Additional entry
formats may be specified in the future.
TYPE_SINGLE entries have the format:
[ TYPE_SINGLE, name (string), CPU time (float), wall time (float ]
TYPE_RUNNING entries have the format:
[ TYPE_RUNNING, name (string), count (int),
CPU m1 (float), CPU m2 (float), CPU min (float), CPU max (float),
wall m1 (float), wall m2 (float), wall min (float), wall max (float) ]
To help reviewers test this change, I have a trivial Python script that can
serve as the back-end: <https://gist.github.com/atdt/8290191>
Change-Id: I688e7231dad9fcc9d29954afacc47f55d521f58d
2014-01-06 21:24:44 +00:00
|
|
|
'ProfilerMwprof' => 'includes/profiler/ProfilerMwprof.php',
|
2011-04-16 11:09:20 +00:00
|
|
|
'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',
|
2013-04-25 06:56:04 +00:00
|
|
|
'ProfileSection' => 'includes/profiler/Profiler.php',
|
2011-04-16 02:19:40 +00:00
|
|
|
|
2013-03-04 19:43:22 +00:00
|
|
|
# includes/rcfeed
|
|
|
|
|
'RCFeedEngine' => 'includes/rcfeed/RCFeedEngine.php',
|
2013-08-26 06:46:21 +00:00
|
|
|
'RedisPubSubFeedEngine' => 'includes/rcfeed/RedisPubSubFeedEngine.php',
|
2013-03-04 19:43:22 +00:00
|
|
|
'UDPRCFeedEngine' => 'includes/rcfeed/UDPRCFeedEngine.php',
|
|
|
|
|
'RCFeedFormatter' => 'includes/rcfeed/RCFeedFormatter.php',
|
|
|
|
|
'IRCColourfulRCFeedFormatter' => 'includes/rcfeed/IRCColourfulRCFeedFormatter.php',
|
|
|
|
|
'JSONRCFeedFormatter' => 'includes/rcfeed/JSONRCFeedFormatter.php',
|
2014-01-04 08:44:50 +00:00
|
|
|
'XMLRCFeedFormatter' => 'includes/rcfeed/XMLRCFeedFormatter.php',
|
|
|
|
|
'MachineReadableRCFeedFormatter' => 'includes/rcfeed/MachineReadableRCFeedFormatter.php',
|
2013-03-04 19:43:22 +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',
|
2011-06-29 00:08:25 +00:00
|
|
|
'ResourceLoaderFilePageModule' => 'includes/resourceloader/ResourceLoaderFilePageModule.php',
|
2013-09-26 18:55:57 +00:00
|
|
|
'ResourceLoaderLESSFunctions' => 'includes/resourceloader/ResourceLoaderLESSFunctions.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'ResourceLoaderModule' => 'includes/resourceloader/ResourceLoaderModule.php',
|
|
|
|
|
'ResourceLoaderNoscriptModule' => 'includes/resourceloader/ResourceLoaderNoscriptModule.php',
|
|
|
|
|
'ResourceLoaderSiteModule' => 'includes/resourceloader/ResourceLoaderSiteModule.php',
|
|
|
|
|
'ResourceLoaderStartUpModule' => 'includes/resourceloader/ResourceLoaderStartUpModule.php',
|
2013-11-04 10:02:48 +00:00
|
|
|
'ResourceLoaderUserCSSPrefsModule' =>
|
|
|
|
|
'includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'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',
|
2013-11-04 10:02:48 +00:00
|
|
|
'ResourceLoaderLanguageDataModule' =>
|
|
|
|
|
'includes/resourceloader/ResourceLoaderLanguageDataModule.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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'RevDel_ArchivedRevisionItem' => 'includes/revisiondelete/RevisionDelete.php',
|
2011-04-17 23:42:22 +00:00
|
|
|
'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',
|
|
|
|
|
'RevisionDeleter' => 'includes/revisiondelete/RevisionDeleter.php',
|
|
|
|
|
'RevisionDeleteUser' => 'includes/revisiondelete/RevisionDeleteUser.php',
|
|
|
|
|
|
2009-07-30 22:45:38 +00:00
|
|
|
# includes/search
|
2013-11-16 02:06:01 +00:00
|
|
|
'MssqlSearchResultSet' => 'includes/search/SearchMssql.php',
|
2009-07-30 22:45:38 +00:00
|
|
|
'MySQLSearchResultSet' => 'includes/search/SearchMySQL.php',
|
|
|
|
|
'PostgresSearchResult' => 'includes/search/SearchPostgres.php',
|
|
|
|
|
'PostgresSearchResultSet' => 'includes/search/SearchPostgres.php',
|
2014-01-18 00:43:40 +00:00
|
|
|
'SearchDatabase' => 'includes/search/SearchDatabase.php',
|
2009-07-30 22:45:38 +00:00
|
|
|
'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',
|
2013-11-16 02:06:01 +00:00
|
|
|
'SearchMssql' => 'includes/search/SearchMssql.php',
|
2009-07-30 22:45:38 +00:00
|
|
|
'SearchMySQL' => 'includes/search/SearchMySQL.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'SearchNearMatchResultSet' => 'includes/search/SearchEngine.php',
|
2009-07-30 22:45:38 +00:00
|
|
|
'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',
|
|
|
|
|
'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
|
|
|
|
2012-09-12 17:22:39 +00:00
|
|
|
# includes/site
|
|
|
|
|
'MediaWikiSite' => 'includes/site/MediaWikiSite.php',
|
|
|
|
|
'Site' => 'includes/site/Site.php',
|
2013-01-18 09:34:14 +00:00
|
|
|
'SiteObject' => 'includes/site/Site.php',
|
|
|
|
|
'SiteArray' => 'includes/site/SiteList.php',
|
2012-09-12 17:22:39 +00:00
|
|
|
'SiteList' => 'includes/site/SiteList.php',
|
2013-01-18 09:34:14 +00:00
|
|
|
'SiteSQLStore' => 'includes/site/SiteSQLStore.php',
|
|
|
|
|
'Sites' => 'includes/site/SiteSQLStore.php',
|
|
|
|
|
'SiteStore' => 'includes/site/SiteStore.php',
|
2012-09-12 17:22:39 +00:00
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# includes/specials
|
2013-04-23 13:29:36 +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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'CategoryPager' => 'includes/specials/SpecialCategories.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'ContribsPager' => 'includes/specials/SpecialContributions.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
|
|
|
'DoubleRedirectsPage' => 'includes/specials/SpecialDoubleRedirects.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'EditWatchlistCheckboxSeriesField' => 'includes/specials/SpecialEditWatchlist.php',
|
|
|
|
|
'EditWatchlistNormalHTMLForm' => 'includes/specials/SpecialEditWatchlist.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'EmailConfirmation' => 'includes/specials/SpecialConfirmemail.php',
|
|
|
|
|
'EmailInvalidation' => 'includes/specials/SpecialConfirmemail.php',
|
|
|
|
|
'FewestrevisionsPage' => 'includes/specials/SpecialFewestrevisions.php',
|
|
|
|
|
'FileDuplicateSearchPage' => 'includes/specials/SpecialFileDuplicateSearch.php',
|
2011-12-06 19:32:29 +00:00
|
|
|
'HTMLBlockedUsersItemSelect' => 'includes/specials/SpecialBlockList.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'ImageListPager' => 'includes/specials/SpecialListfiles.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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'MergeHistoryPager' => 'includes/specials/SpecialMergeHistory.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'MIMEsearchPage' => 'includes/specials/SpecialMIMEsearch.php',
|
|
|
|
|
'MostcategoriesPage' => 'includes/specials/SpecialMostcategories.php',
|
|
|
|
|
'MostimagesPage' => 'includes/specials/SpecialMostimages.php',
|
2012-08-20 14:55:28 +00:00
|
|
|
'MostinterwikisPage' => 'includes/specials/SpecialMostinterwikis.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'NewFilesPager' => 'includes/specials/SpecialNewimages.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'NewPagesPager' => 'includes/specials/SpecialNewpages.php',
|
|
|
|
|
'PageArchive' => 'includes/specials/SpecialUndelete.php',
|
|
|
|
|
'PopularPagesPage' => 'includes/specials/SpecialPopularpages.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'ProtectedPagesPager' => 'includes/specials/SpecialProtectedpages.php',
|
|
|
|
|
'ProtectedTitlesPager' => 'includes/specials/SpecialProtectedtitles.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'RandomPage' => 'includes/specials/SpecialRandompage.php',
|
|
|
|
|
'ShortPagesPage' => 'includes/specials/SpecialShortpages.php',
|
2013-04-23 13:29:36 +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',
|
2008-07-24 12:45:23 +00:00
|
|
|
'SpecialBookSources' => 'includes/specials/SpecialBooksources.php',
|
2012-04-10 12:26:11 +00:00
|
|
|
'SpecialCachedPage' => 'includes/specials/SpecialCachedPage.php',
|
2010-08-21 15:39:07 +00:00
|
|
|
'SpecialCategories' => 'includes/specials/SpecialCategories.php',
|
2011-07-23 00:48:39 +00:00
|
|
|
'SpecialChangeEmail' => 'includes/specials/SpecialChangeEmail.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',
|
2013-05-12 22:10:47 +00:00
|
|
|
'SpecialDiff' => 'includes/specials/SpecialDiff.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',
|
2013-11-21 19:38:34 +00:00
|
|
|
'SpecialExpandTemplates' => 'includes/specials/SpecialExpandTemplates.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',
|
2012-01-03 18:33:26 +00:00
|
|
|
'SpecialJavaScriptTest' => 'includes/specials/SpecialJavaScriptTest.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',
|
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',
|
2012-12-31 21:30:24 +00:00
|
|
|
'SpecialPagesWithProp' => 'includes/specials/SpecialPagesWithProp.php',
|
2013-12-09 16:52:16 +00:00
|
|
|
'SpecialPermanentLink' => 'includes/specials/SpecialPermanentLink.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',
|
2013-07-04 16:19:47 +00:00
|
|
|
'SpecialRandomInCategory' => 'includes/specials/SpecialRandomInCategory.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',
|
2013-12-18 16:02:33 +00:00
|
|
|
'SpecialRecentChangesLinked' => 'includes/specials/SpecialRecentchangeslinked.php',
|
2013-04-13 01:52:05 +00:00
|
|
|
'SpecialRedirect' => 'includes/specials/SpecialRedirect.php',
|
Refactor watchlist token handling
Do not allow the user to change it directly; instead create a form
where they can reset it. (The token can still be changed via the API.)
The token is autogenerated whenever it is shown or otherwise used.
This really should have never used the preferences; however, trying to
change that now would be lots of work for very little gain, so this
keeps using that mechanism, adding a little abstraction over it.
It's not unconceivable that similar tokens could be used for other
pieces of data, like Echo's notifications; this enables that with one
new hook.
----
Things done here:
* Add getTokenFromOption() and resetTokenFromOption() methods to User,
abstracting out the get-and-generate-if-empty process of handling
tokens. Respect $wgHiddenPrefs (Watchlist didn't do that
previously).
* Create Special:ResetTokens, inspired by Special:Preferences and
Special:ChangeEmail, presenting the token resetting interface
(HTMLForm-based with CSRF protection).
* Create a new hook, SpecialResetTokensTokens, allowing extensions to
register tokens to be shown in the resetting form. Each token needs
information about the preference it corresponds to and a short
description (used for checkbox label).
* Hide the preference on Special:Preferences (use type=api to achieve
this), display a link to aforementioned special page instead. Move
info blurb to its own section at the bottom.
Bug: 21912
Change-Id: I0bdd2469972c4af81bfb480e9dde58cdd14c67a8
2013-06-14 16:59:59 +00:00
|
|
|
'SpecialResetTokens' => 'includes/specials/SpecialResetTokens.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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'SpecialUploadStashTooLargeException' => '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',
|
2012-06-16 20:32:56 +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',
|
2012-06-16 20:32:56 +00:00
|
|
|
'UploadChunkFileException' => 'includes/upload/UploadFromChunks.php',
|
|
|
|
|
'UploadChunkZeroLengthFileException' => 'includes/upload/UploadFromChunks.php',
|
2013-05-16 22:09:44 +00:00
|
|
|
'UploadChunkVerificationException' => 'includes/upload/UploadFromChunks.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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
|
2011-12-20 15:02:39 +00:00
|
|
|
'UserloginTemplate' => 'includes/templates/Userlogin.php',
|
|
|
|
|
'UsercreateTemplate' => 'includes/templates/Usercreate.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-11-30 14:56:40 +00:00
|
|
|
'UploadFromChunks' => 'includes/upload/UploadFromChunks.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',
|
2013-06-19 20:52:33 +00:00
|
|
|
'UploadStashException' => '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',
|
2011-12-22 00:11:38 +00:00
|
|
|
'UploadStashNotLoggedInException' => 'includes/upload/UploadStash.php',
|
|
|
|
|
'UploadStashWrongOwnerException' => 'includes/upload/UploadStash.php',
|
|
|
|
|
'UploadStashNoSuchKeyException' => 'includes/upload/UploadStash.php',
|
2011-12-27 13:34:28 +00:00
|
|
|
|
Introduce includes/utils directory
These are classes that provide facilities for use by any caller, are
independent of user interface, and have a limited set of dependencies on
the rest of MediaWiki. See the README file for a more precise
definition.
These classes cannot go in includes/libs because of a dependency on the
MediaWiki framework, such as wfDebug() or MWException, but they are
otherwise similar. I thought it would be useful to put them in their own
directory, to make them more discoverable, and as part of a general
program of reducing clutter in the base includes/ directory.
I've probably missed a few classes which could be included here, but the
following classes were considered and were rejected for now:
* Fallback: single caller only
* GitInfo: getViewers() has inappropriate dependencies
* HttpFunctions: depends on configuration, $wgTitle
* PoolCounter: depends on configuration
* CacheHelper: depends on IContextSource, wfMemc()
Also moved a couple of classes into libs/ instead, where that seemed to
be more appropriate.
Change-Id: I274cff805b7d694b728a89b764a049cd62d320fe
2013-11-01 06:17:45 +00:00
|
|
|
# includes/utils
|
|
|
|
|
'ArrayUtils' => 'includes/utils/ArrayUtils.php',
|
2013-11-07 22:03:08 +00:00
|
|
|
'CdbException' => 'includes/utils/Cdb.php',
|
Remove underscore from CdbReader_[DBA|PHP] classes and related file
Also gets rid of some CodeSniffer errors. There are more cases in core
(cache, pool counter, installer, database, load balancer, diff, CSS
Janus, less (argh!), media, parser, revdel, ...), that have class names
with underscores I'd be trying to get rid of later.
Change-Id: I33709c05e597978a5574a445fa43c583cbd7e12b
2013-11-04 10:02:48 +00:00
|
|
|
'CdbFunctions' => 'includes/utils/CdbPHP.php',
|
Introduce includes/utils directory
These are classes that provide facilities for use by any caller, are
independent of user interface, and have a limited set of dependencies on
the rest of MediaWiki. See the README file for a more precise
definition.
These classes cannot go in includes/libs because of a dependency on the
MediaWiki framework, such as wfDebug() or MWException, but they are
otherwise similar. I thought it would be useful to put them in their own
directory, to make them more discoverable, and as part of a general
program of reducing clutter in the base includes/ directory.
I've probably missed a few classes which could be included here, but the
following classes were considered and were rejected for now:
* Fallback: single caller only
* GitInfo: getViewers() has inappropriate dependencies
* HttpFunctions: depends on configuration, $wgTitle
* PoolCounter: depends on configuration
* CacheHelper: depends on IContextSource, wfMemc()
Also moved a couple of classes into libs/ instead, where that seemed to
be more appropriate.
Change-Id: I274cff805b7d694b728a89b764a049cd62d320fe
2013-11-01 06:17:45 +00:00
|
|
|
'CdbReader' => 'includes/utils/Cdb.php',
|
2013-11-07 22:03:08 +00:00
|
|
|
'CdbReaderDBA' => 'includes/utils/CdbDBA.php',
|
Remove underscore from CdbReader_[DBA|PHP] classes and related file
Also gets rid of some CodeSniffer errors. There are more cases in core
(cache, pool counter, installer, database, load balancer, diff, CSS
Janus, less (argh!), media, parser, revdel, ...), that have class names
with underscores I'd be trying to get rid of later.
Change-Id: I33709c05e597978a5574a445fa43c583cbd7e12b
2013-11-04 10:02:48 +00:00
|
|
|
'CdbReaderPHP' => 'includes/utils/CdbPHP.php',
|
Introduce includes/utils directory
These are classes that provide facilities for use by any caller, are
independent of user interface, and have a limited set of dependencies on
the rest of MediaWiki. See the README file for a more precise
definition.
These classes cannot go in includes/libs because of a dependency on the
MediaWiki framework, such as wfDebug() or MWException, but they are
otherwise similar. I thought it would be useful to put them in their own
directory, to make them more discoverable, and as part of a general
program of reducing clutter in the base includes/ directory.
I've probably missed a few classes which could be included here, but the
following classes were considered and were rejected for now:
* Fallback: single caller only
* GitInfo: getViewers() has inappropriate dependencies
* HttpFunctions: depends on configuration, $wgTitle
* PoolCounter: depends on configuration
* CacheHelper: depends on IContextSource, wfMemc()
Also moved a couple of classes into libs/ instead, where that seemed to
be more appropriate.
Change-Id: I274cff805b7d694b728a89b764a049cd62d320fe
2013-11-01 06:17:45 +00:00
|
|
|
'CdbWriter' => 'includes/utils/Cdb.php',
|
2013-11-07 22:03:08 +00:00
|
|
|
'CdbWriterDBA' => 'includes/utils/CdbDBA.php',
|
Remove underscore from CdbReader_[DBA|PHP] classes and related file
Also gets rid of some CodeSniffer errors. There are more cases in core
(cache, pool counter, installer, database, load balancer, diff, CSS
Janus, less (argh!), media, parser, revdel, ...), that have class names
with underscores I'd be trying to get rid of later.
Change-Id: I33709c05e597978a5574a445fa43c583cbd7e12b
2013-11-04 10:02:48 +00:00
|
|
|
'CdbWriterPHP' => 'includes/utils/CdbPHP.php',
|
Introduce includes/utils directory
These are classes that provide facilities for use by any caller, are
independent of user interface, and have a limited set of dependencies on
the rest of MediaWiki. See the README file for a more precise
definition.
These classes cannot go in includes/libs because of a dependency on the
MediaWiki framework, such as wfDebug() or MWException, but they are
otherwise similar. I thought it would be useful to put them in their own
directory, to make them more discoverable, and as part of a general
program of reducing clutter in the base includes/ directory.
I've probably missed a few classes which could be included here, but the
following classes were considered and were rejected for now:
* Fallback: single caller only
* GitInfo: getViewers() has inappropriate dependencies
* HttpFunctions: depends on configuration, $wgTitle
* PoolCounter: depends on configuration
* CacheHelper: depends on IContextSource, wfMemc()
Also moved a couple of classes into libs/ instead, where that seemed to
be more appropriate.
Change-Id: I274cff805b7d694b728a89b764a049cd62d320fe
2013-11-01 06:17:45 +00:00
|
|
|
'ConfEditor' => 'includes/utils/ConfEditor.php',
|
|
|
|
|
'ConfEditorParseError' => 'includes/utils/ConfEditor.php',
|
|
|
|
|
'ConfEditorToken' => 'includes/utils/ConfEditor.php',
|
|
|
|
|
'DoubleReplacer' => 'includes/utils/StringUtils.php',
|
|
|
|
|
'ExplodeIterator' => 'includes/utils/StringUtils.php',
|
|
|
|
|
'HashtableReplacer' => 'includes/utils/StringUtils.php',
|
|
|
|
|
'IP' => 'includes/utils/IP.php',
|
|
|
|
|
'MWCryptRand' => 'includes/utils/MWCryptRand.php',
|
|
|
|
|
'MWFunction' => 'includes/utils/MWFunction.php',
|
|
|
|
|
'RegexlikeReplacer' => 'includes/utils/StringUtils.php',
|
|
|
|
|
'ReplacementArray' => 'includes/utils/StringUtils.php',
|
|
|
|
|
'Replacer' => 'includes/utils/StringUtils.php',
|
|
|
|
|
'StringUtils' => 'includes/utils/StringUtils.php',
|
|
|
|
|
'UIDGenerator' => 'includes/utils/UIDGenerator.php',
|
|
|
|
|
'ZipDirectoryReader' => 'includes/utils/ZipDirectoryReader.php',
|
|
|
|
|
'ZipDirectoryReaderError' => 'includes/utils/ZipDirectoryReader.php',
|
|
|
|
|
|
2008-07-24 12:45:23 +00:00
|
|
|
# languages
|
2012-06-16 20:32:56 +00:00
|
|
|
'ConverterRule' => 'languages/LanguageConverter.php',
|
2008-07-24 12:45:23 +00:00
|
|
|
'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',
|
2012-10-05 20:12:03 +00:00
|
|
|
'CLDRPluralRuleConverter' => 'languages/utils/CLDRPluralRuleEvaluator.php',
|
|
|
|
|
'CLDRPluralRuleConverter_Expression' => 'languages/utils/CLDRPluralRuleEvaluator.php',
|
|
|
|
|
'CLDRPluralRuleConverter_Fragment' => 'languages/utils/CLDRPluralRuleEvaluator.php',
|
|
|
|
|
'CLDRPluralRuleConverter_Operator' => 'languages/utils/CLDRPluralRuleEvaluator.php',
|
2012-08-29 08:07:10 +00:00
|
|
|
'CLDRPluralRuleEvaluator' => 'languages/utils/CLDRPluralRuleEvaluator.php',
|
2012-10-05 20:12:03 +00:00
|
|
|
'CLDRPluralRuleEvaluator_Range' => 'languages/utils/CLDRPluralRuleEvaluator.php',
|
2012-08-29 08:07:10 +00:00
|
|
|
'CLDRPluralRuleError' => 'languages/utils/CLDRPluralRuleEvaluator.php',
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2010-06-25 02:55:51 +00:00
|
|
|
# maintenance
|
2012-11-07 01:27:30 +00:00
|
|
|
'BackupDumper' => 'maintenance/backup.inc',
|
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',
|
2012-11-07 01:27:30 +00:00
|
|
|
'DumpDBZip2Output' => 'maintenance/backup.inc',
|
|
|
|
|
'ExportProgressFilter' => 'maintenance/backup.inc',
|
2011-06-03 03:59:27 +00:00
|
|
|
'FakeMaintenance' => 'maintenance/Maintenance.php',
|
2012-11-07 01:27:30 +00:00
|
|
|
'FixExtLinksProtocolRelative' => 'maintenance/fixExtLinksProtocolRelative.php',
|
2011-08-15 18:52:25 +00:00
|
|
|
'LoggedUpdateMaintenance' => 'maintenance/Maintenance.php',
|
2011-06-03 04:05:04 +00:00
|
|
|
'Maintenance' => 'maintenance/Maintenance.php',
|
2010-09-10 16:53:35 +00:00
|
|
|
'PopulateCategory' => 'maintenance/populateCategory.php',
|
2011-08-12 20:37:35 +00:00
|
|
|
'PopulateImageSha1' => 'maintenance/populateImageSha1.php',
|
2012-10-14 18:58:25 +00:00
|
|
|
'PopulateFilearchiveSha1' => 'maintenance/populateFilearchiveSha1.php',
|
2010-09-10 16:53:35 +00:00
|
|
|
'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',
|
2011-10-27 18:44:10 +00:00
|
|
|
'PopulateRevisionSha1' => 'maintenance/populateRevisionSha1.php',
|
2011-11-30 20:03:34 +00:00
|
|
|
'RefreshLinks' => 'maintenance/refreshLinks.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
|
2013-11-11 15:43:58 +00:00
|
|
|
'CsvStatsOutput' => 'maintenance/language/StatOutputs.php',
|
2013-11-11 15:32:51 +00:00
|
|
|
'ExtensionLanguages' => 'maintenance/language/languages.inc',
|
|
|
|
|
'Languages' => 'maintenance/language/languages.inc',
|
2011-09-30 15:45:48 +00:00
|
|
|
'MessageWriter' => 'maintenance/language/writeMessagesArray.inc',
|
2013-11-11 15:43:58 +00:00
|
|
|
'StatsOutput' => 'maintenance/language/StatOutputs.php',
|
|
|
|
|
'TextStatsOutput' => 'maintenance/language/StatOutputs.php',
|
|
|
|
|
'WikiStatsOutput' => 'maintenance/language/StatOutputs.php',
|
2010-12-14 16:48:44 +00:00
|
|
|
|
2011-11-29 12:17:55 +00:00
|
|
|
# maintenance/term
|
2013-02-03 20:05:24 +00:00
|
|
|
'AnsiTermColorer' => 'maintenance/term/MWTerm.php',
|
2011-11-29 12:17:55 +00:00
|
|
|
'DummyTermColorer' => 'maintenance/term/MWTerm.php',
|
|
|
|
|
|
2012-06-12 16:18:44 +00:00
|
|
|
# mw-config
|
|
|
|
|
'InstallerOverrides' => 'mw-config/overrides.php',
|
2012-06-16 20:32:56 +00:00
|
|
|
'MyLocalSettingsGenerator' => 'mw-config/overrides.php',
|
2012-06-12 16:18:44 +00:00
|
|
|
|
2012-06-15 01:41:33 +00:00
|
|
|
# skins
|
|
|
|
|
'CologneBlueTemplate' => 'skins/CologneBlue.php',
|
|
|
|
|
'ModernTemplate' => 'skins/Modern.php',
|
|
|
|
|
'MonoBookTemplate' => 'skins/MonoBook.php',
|
|
|
|
|
'SkinCologneBlue' => 'skins/CologneBlue.php',
|
|
|
|
|
'SkinModern' => 'skins/Modern.php',
|
|
|
|
|
'SkinMonoBook' => 'skins/MonoBook.php',
|
|
|
|
|
'SkinVector' => 'skins/Vector.php',
|
|
|
|
|
'VectorTemplate' => 'skins/Vector.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 {
|
2013-11-13 16:08:59 +00:00
|
|
|
static protected $autoloadLocalClassesLower = null;
|
2013-10-27 05:59:01 +00:00
|
|
|
|
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
|
|
|
*
|
2013-03-11 17:15:01 +00:00
|
|
|
* @param string $className name of class we're looking for.
|
2008-07-02 19:41:58 +00:00
|
|
|
*/
|
2008-06-16 20:21:26 +00:00
|
|
|
static function autoload( $className ) {
|
2013-10-27 05:59:01 +00:00
|
|
|
global $wgAutoloadClasses, $wgAutoloadLocalClasses,
|
|
|
|
|
$wgAutoloadAttemptLowercase;
|
2008-06-16 20:21:26 +00:00
|
|
|
|
2013-08-24 15:06:25 +00:00
|
|
|
// Workaround for PHP bug <https://bugs.php.net/bug.php?id=49143> (5.3.2. is broken, it's
|
|
|
|
|
// fixed in 5.3.6). Strip leading backslashes from class names. When namespaces are used,
|
|
|
|
|
// leading backslashes are used to indicate the top-level namespace, e.g. \foo\Bar. When
|
|
|
|
|
// used like this in the code, the leading backslash isn't passed to the auto-loader
|
|
|
|
|
// ($className would be 'foo\Bar'). However, if a class is accessed using a string instead
|
|
|
|
|
// of a class literal (e.g. $class = '\foo\Bar'; new $class()), then some versions of PHP
|
|
|
|
|
// do not strip the leading backlash in this case, causing autoloading to fail.
|
2012-05-24 16:30:03 +00:00
|
|
|
$className = ltrim( $className, '\\' );
|
2012-05-24 13:30:13 +00:00
|
|
|
|
2013-11-12 19:34:43 +00:00
|
|
|
$filename = false;
|
|
|
|
|
|
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];
|
2013-10-27 05:59:01 +00:00
|
|
|
} elseif ( $wgAutoloadAttemptLowercase ) {
|
|
|
|
|
/*
|
|
|
|
|
* Try a different capitalisation.
|
|
|
|
|
*
|
|
|
|
|
* PHP 4 objects are always serialized with the classname coerced to lowercase,
|
|
|
|
|
* and we are plagued with several legacy uses created by MediaWiki < 1.5, see
|
|
|
|
|
* https://wikitech.wikimedia.org/wiki/Text_storage_data
|
|
|
|
|
*/
|
2008-06-16 20:21:26 +00:00
|
|
|
$lowerClass = strtolower( $className );
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2013-10-27 05:59:01 +00:00
|
|
|
if ( self::$autoloadLocalClassesLower === null ) {
|
|
|
|
|
self::$autoloadLocalClassesLower = array_change_key_case( $wgAutoloadLocalClasses, CASE_LOWER );
|
2008-06-16 20:21:26 +00:00
|
|
|
}
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2013-10-27 05:59:01 +00:00
|
|
|
if ( isset( self::$autoloadLocalClassesLower[$lowerClass] ) ) {
|
2010-10-21 18:26:17 +00:00
|
|
|
if ( function_exists( 'wfDebug' ) ) {
|
2013-10-27 05:59:01 +00:00
|
|
|
wfDebug( "Class {$className} was loaded using incorrect case.\n" );
|
2010-10-21 18:26:17 +00:00
|
|
|
}
|
2013-10-27 05:59:01 +00:00
|
|
|
$filename = self::$autoloadLocalClassesLower[$lowerClass];
|
|
|
|
|
}
|
|
|
|
|
}
|
2010-05-30 14:48:30 +00:00
|
|
|
|
2013-10-27 05:59:01 +00:00
|
|
|
if ( !$filename ) {
|
|
|
|
|
if ( function_exists( 'wfDebug' ) ) {
|
|
|
|
|
# FIXME: This is not very polite. Assume we do not manage the class.
|
|
|
|
|
wfDebug( "Class {$className} not found; skipped loading\n" );
|
2006-07-02 15:57:59 +00:00
|
|
|
}
|
2013-10-27 05:59:01 +00:00
|
|
|
|
|
|
|
|
# Give up
|
2014-01-04 19:25:44 +00:00
|
|
|
return;
|
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
|
|
|
|
2013-05-07 23:00:15 +00:00
|
|
|
require $filename;
|
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.
|
|
|
|
|
*
|
2012-04-15 00:12:01 +00:00
|
|
|
* @param $class string
|
2010-03-12 22:52:11 +00:00
|
|
|
* @return Boolean Return the results of class_exists() so we know if we were successful
|
|
|
|
|
*/
|
|
|
|
|
static function loadClass( $class ) {
|
|
|
|
|
return class_exists( $class );
|
|
|
|
|
}
|
2013-11-07 16:50:23 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method to clear the protected class property $autoloadLocalClassesLower.
|
|
|
|
|
* Used in tests.
|
|
|
|
|
*/
|
|
|
|
|
static function resetAutoloadLocalClassesLower() {
|
|
|
|
|
self::$autoloadLocalClassesLower = null;
|
|
|
|
|
}
|
2006-06-06 09:50:01 +00:00
|
|
|
}
|
|
|
|
|
|
2013-06-03 09:13:42 +00:00
|
|
|
spl_autoload_register( array( 'AutoLoader', 'autoload' ) );
|