Current configuration on the wiki
As the services, that are registered in MediaWikiServices can be changed by extensions using the MediaWikiServices hook, it's not save to assume, that the first created instance of MediaWikiServices (which could be created before any extension is loaded, e.g. in ExtensionRegistry) contains the same services as a later created one (in the reset process of resetGlobalInstance). Doing this could result in a NoSuchServiceException, if an extension registers new services, which aren't registered before the extension is loaded (as, in the reset process, MediaWikiServices tries to minimize the service instantiation cost by preserving services, that can be preserved). This patch adds a check, if a service is registered in the MediaWikiServices object that should be reset, before the salvage-logic tries to fetch the services. If the service object does not exist, it simply skips it, as it will simply instantiated later. Follow up: Ie2ca3ff99aa74fffa9eb6c8faccab857dc0874f7 Follow up: I2a26b6af07a48ad15414a8428daa9cfcfe02e933 Bug: T143974 Change-Id: Ifc587d6138ab565c2f38eb0805acf0dd0473d433 |
||
|---|---|---|
| cache | ||
| docs | ||
| extensions | ||
| images | ||
| includes | ||
| languages | ||
| maintenance | ||
| mw-config | ||
| resources | ||
| serialized | ||
| skins | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .gitreview | ||
| .jscsrc | ||
| .jshintignore | ||
| .jshintrc | ||
| .mailmap | ||
| .rubocop.yml | ||
| .stylelintrc | ||
| .travis.yml | ||
| api.php | ||
| autoload.php | ||
| composer.json | ||
| composer.local.json-sample | ||
| COPYING | ||
| CREDITS | ||
| FAQ | ||
| Gemfile | ||
| Gemfile.lock | ||
| Gruntfile.js | ||
| HISTORY | ||
| img_auth.php | ||
| index.php | ||
| INSTALL | ||
| jsduck.json | ||
| load.php | ||
| opensearch_desc.php | ||
| package.json | ||
| phpcs.xml | ||
| profileinfo.php | ||
| Rakefile | ||
| README | ||
| README.mediawiki | ||
| RELEASE-NOTES-1.28 | ||
| StartProfiler.sample | ||
| thumb.php | ||
| thumb_handler.php | ||
| UPGRADE | ||
| wiki.phtml | ||
== MediaWiki == MediaWiki is a free and open-source wiki software package written in PHP. It serves as the platform for Wikipedia and the other Wikimedia projects, used by hundreds of millions of people each month. MediaWiki is localised in over 350 languages and its reliability and robust feature set have earned it a large and vibrant community of third-party users and developers. MediaWiki is: * feature-rich and extensible, both on-wiki and with hundreds of extensions; * scalable and suitable for both small and large sites; * simple to install, working on most hardware/software combinations; and * available in your language. For system requirements, installation, and upgrade details, see the files RELEASE-NOTES, INSTALL, and UPGRADE. * Ready to get started? ** https://www.mediawiki.org/wiki/Download * Looking for the technical manual? ** https://www.mediawiki.org/wiki/Manual:Contents * Seeking help from a person? ** https://www.mediawiki.org/wiki/Communication * Looking to file a bug report or a feature request? ** https://bugs.mediawiki.org/ * Interested in helping out? ** https://www.mediawiki.org/wiki/How_to_contribute MediaWiki is the result of global collaboration and cooperation. The CREDITS file lists technical contributors to the project. The COPYING file explains MediaWiki's copyright and license (GNU General Public License, version 2 or later). Many thanks to the Wikimedia community for testing and suggestions.