Current configuration on the wiki
We already did this, but it was rather convoluted with lots of if/elseif sequences checking all the possible values. Remove this logic from ResourceLoaderStartUpModule. Simplying it simply create the array and pass it to ResourceLoader::makeLoaderRegisterScript. In makeLoaderRegisterScript, we apply a filter to the array(s) that trim empty values. While at it: * As with other registration properties' default values (like for dependencies, group, and skip) also use 'null' for the default value of 'source'. The mediawiki.js client was already compatible with this, and the server omitted it if it was the last value in the list. But in all other cases it explicitly outputs "local". Use null instead of simplicity sake. This also gains us a few characters in the output, and a relatively larger win after gzip since there's lots more re-using of "null". * Remove stray casting of $version to int. This only happened in case of registering a single module (which don't do anywhere), and is redundant. Change-Id: I1f321e7b8bd3b5cffc550b51169957a3da9b971d |
||
|---|---|---|
| cache | ||
| docs | ||
| extensions | ||
| images | ||
| includes | ||
| languages | ||
| maintenance | ||
| mw-config | ||
| resources | ||
| serialized | ||
| skins | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .gitreview | ||
| .jscsrc | ||
| .jshintignore | ||
| .jshintrc | ||
| .rubocop.yml | ||
| .rubocop_todo.yml | ||
| .travis.yml | ||
| api.php | ||
| api.php5 | ||
| autoload.php | ||
| composer.json | ||
| COPYING | ||
| CREDITS | ||
| FAQ | ||
| Gemfile | ||
| Gemfile.lock | ||
| HISTORY | ||
| img_auth.php | ||
| img_auth.php5 | ||
| index.php | ||
| index.php5 | ||
| INSTALL | ||
| load.php | ||
| load.php5 | ||
| opensearch_desc.php | ||
| opensearch_desc.php5 | ||
| profileinfo.php | ||
| profileinfo.php5 | ||
| README | ||
| README.mediawiki | ||
| RELEASE-NOTES-1.25 | ||
| StartProfiler.sample | ||
| thumb.php | ||
| thumb.php5 | ||
| thumb_handler.php | ||
| thumb_handler.php5 | ||
| UPGRADE | ||
| wiki.phtml | ||
== MediaWiki == MediaWiki is a popular and free, open-source wiki software package written in PHP. It serves as the platform for Wikipedia and the other projects of the Wikimedia Foundation, which deliver content in over 280 languages to more than half a billion people each month. MediaWiki's 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 over 2,000 extensions; * scalable and suitable for both small and large sites; * available in your language; and * simple to install, working on most hardware/software combinations. 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://bugzilla.wikimedia.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.