[go: up one dir, main page]

build: Updating mediawiki/mediawiki-codesniffer to 44.0.0

Change-Id: I9bc58d3afe4e0e034b70db8c29bb604bb48a20db
1 file changed
tree: e96b8bb9670adc0d44b0bc9c43f9bc15a0d163ce
  1. .phan/
  2. i18n/
  3. includes/
  4. resources/
  5. tests/
  6. .gitignore
  7. .gitreview
  8. .phpcs.xml
  9. composer.json
  10. extension.json
  11. README.md
README.md

Allows developers to source content for wiki pages from places other than the local database.

Configuration options

$wgMFContentProviderEnabled

Disable/enable the content provider.

  • Type: boolean
  • Default: true

$wgMFContentProviderClass

Name of PHP class that is responsible for formatting HTML for mobile. Must implement IContentProvider.

  • Type: string
  • Default: MobileFrontendContentProviders\\MwApiContentProvider

MFContentProviderTryLocalContentFirst

When using a ContentProvider in MFContentProviderClass, specify whether you want to allow local content as well as provided content. This is useful if you are wanting to run Selenium browser tests against locally created content but also have the benefit of testing content on a production wiki.

  • Type: boolean
  • Default: true

MFContentProviderScriptPath

When set will override the default script path to a foreign content provider e.g. https://en.wikipedia.org/w will route queries (e.g. API) to English Wikipedia.

Note, this will make the wiki read only. Non-anonymous HTTP requests will throw CORS error. This may also cause compatibility problems with other extensions. This should not be used in production, it is strictly for development purposes.

  • Type: string
  • Default: ''

$wgMFMwApiContentProviderBaseUri

URL to be used by the MwApiMobileFormatter class. Points to a MediaWiki API that can be queried to obtain content.

  • Type: string
  • Default: https://en.wikipedia.org/w/api.php

$wgMFMwApiContentProviderFixArticlePath

Attempt to map link URLs to the local wiki's article path, if it differs from that of the remote wiki.

  • Type: boolean
  • Default: false