[go: nahoru, domu]

Skip registering RL modules depending on VisualEditor

When VisualEditor is not installed, there is no point in registered
resource loader modules that depends on it.  A use case is trying to run
tests for the MediaWiki tarball. It comes with Cite but without
VisualEditor.

The patch is based on GuidedTour patch by Matthew Flaschen
https://gerrit.wikimedia.org/r/#/c/305691/ for T143297

Remove the message "cite-ve-othergroup-item" which got introduced in
REL1_28 by 724d890 and is not in REL1_27.

Adjust base directory for REL1_27 since CiteHooks.php is at the root
when REL1_28 had it moved under includes/Cite.hooks.php

Change-Id: Idf769e0149f93c099a94b1b7a6cb203273dab881
(cherry picked from commit 5fcecf9e5f18a355327a883ecd745b9255f21173)
2 files changed
tree: c719f17cd58d9dd30db755c80f817869a7dd4f05
  1. i18n/
  2. modules/
  3. .gitignore
  4. .gitreview
  5. .jscsrc
  6. .jshintignore
  7. .jshintrc
  8. ApiQueryReferences.php
  9. AUTHORS.txt
  10. Cite.php
  11. Cite_body.php
  12. CiteCSSFileModule.php
  13. CiteDataModule.php
  14. CiteHooks.php
  15. citeParserTests.txt
  16. composer.json
  17. COPYING.txt
  18. extension.json
  19. Gruntfile.js
  20. MIT-LICENSE.txt
  21. package.json
  22. phpcs.xml
  23. README.md
  24. SpecialCite.php
README.md

Cite

The Cite extension provides a way for users to create references as footnotes to articles.

See https://www.mediawiki.org/wiki/Extension:Cite for detailed documentation.

Configuration

  • $wgCiteStoreReferencesData: If set to true, references are saved in the database so that other extensions can retrieve them independently of the main article content.
  • $wgCiteCacheReferencesDataOnParse: ($wgCiteStoreReferencesData required) By default, references are cached only on database access. If set to true, references are also cached whenever pages are parsed.