mediawiki-extensions-TextEx.../extension.json
Fomafix 375f6d3574 Use PHP7 syntax features
* Use the ?? operator.
* Use "\u{00A0}" instead of "\xC2\xA0".

Also increase the minimum required MediaWiki version from 1.30 to 1.31
because 1.31 requires PHP7.

Change-Id: Ic5c279976f50b381cec65e74b7cc821a210c2173
2019-02-02 21:58:54 +01:00

61 lines
1.2 KiB
JSON

{
"name": "TextExtracts",
"author": [
"Max Semenik"
],
"requires": {
"MediaWiki": ">= 1.31.0"
},
"url": "https://www.mediawiki.org/wiki/Extension:TextExtracts",
"descriptionmsg": "textextracts-desc",
"license-name": "GPL-2.0-or-later",
"type": "other",
"ConfigRegistry": {
"textextracts": "GlobalVarConfig::newInstance"
},
"APIPropModules": {
"extracts": {
"class": "TextExtracts\\ApiQueryExtracts",
"factory": "TextExtracts\\ApiQueryExtracts::factory"
}
},
"MessagesDirs": {
"TextExtracts": [
"i18n"
]
},
"AutoloadClasses": {
"TextExtracts\\ApiQueryExtracts": "includes/ApiQueryExtracts.php",
"TextExtracts\\ExtractFormatter": "includes/ExtractFormatter.php",
"TextExtracts\\Hooks": "includes/Hooks.php"
},
"Hooks": {
"OpenSearchXml": [
"TextExtracts\\Hooks::onApiOpenSearchSuggest"
],
"ApiOpenSearchSuggest": [
"TextExtracts\\Hooks::onApiOpenSearchSuggest"
]
},
"config": {
"ExtractsRemoveClasses": [
"table",
"div",
"script",
"input",
"style",
"ul.gallery",
".mw-editsection",
"sup.reference",
"ol.references",
".error",
".nomobile",
".noprint",
".noexcerpt",
".sortkey"
],
"ExtractsExtendOpenSearchXml": false
},
"manifest_version": 1
}