mediawiki-extensions-Cite/extension.json
Thiemo Kreuz a7c4e14f42 Remove obsolete ParserBeforeTidy hook handler
I was able to track this code down to I093d85d from 2012, which was done
right after the ParserAfterParse hook was introduced. I believe the
redundant code path was left to keep the Cite extension compatible with
old MediaWiki versions that did not had this hook yet.

I also noticed this code path is most probably entirely redundant with
the current version of MediaWiki. The *only* thing this code does is
blocking the ParserBeforeTidy hook from doing the same thing a second
time if the ParserAfterParse hook was called before. But it does *not*
block any other compination, e.g. if the two hooks are called the other
way around, or the same hook twice.

In core, it looks like it is impossible for the ParserBeforeTidy hook
being fired without the ParserAfterParse hook being fired before. If this
is true, this is in fact dead code.

Change-Id: Iacf8b600c7abdeaf89c22c2fc31e646f57245e47
2019-12-04 16:56:43 +01:00

111 lines
2.6 KiB
JSON

{
"name": "Cite",
"version": "1.0.0",
"author": [
"Ævar Arnfjörð Bjarmason",
"Andrew Garrett",
"Brion Vibber",
"Ed Sanders",
"Marius Hoch",
"Steve Sanbeg",
"Trevor Parscal",
"..."
],
"url": "https://www.mediawiki.org/wiki/Extension:Cite",
"descriptionmsg": "cite-desc",
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.34.0"
},
"MessagesDirs": {
"Cite": [
"i18n",
"modules/ve-cite/i18n"
]
},
"Hooks": {
"APIQuerySiteInfoGeneralInfo": "Cite\\Hooks\\CiteHooks::onAPIQuerySiteInfoGeneralInfo",
"ContentHandlerDefaultModelFor": "Cite\\Hooks\\CiteHooks::onContentHandlerDefaultModelFor",
"ParserAfterParse": "Cite\\Hooks\\CiteParserHooks::onParserAfterParse",
"ParserClearState": "Cite\\Hooks\\CiteParserHooks::onParserClearState",
"ParserCloned": "Cite\\Hooks\\CiteParserHooks::onParserCloned",
"ParserFirstCallInit": "Cite\\Hooks\\CiteParserHooks::onParserFirstCallInit",
"ResourceLoaderGetConfigVars": "Cite\\Hooks\\CiteHooks::onResourceLoaderGetConfigVars",
"ResourceLoaderRegisterModules": "Cite\\Hooks\\CiteHooks::onResourceLoaderRegisterModules",
"ResourceLoaderTestModules": "Cite\\Hooks\\CiteHooks::onResourceLoaderTestModules"
},
"ResourceModules": {
"ext.cite.styles": {
"styles": {
"ext.cite.styles.css": {},
"ext.cite.print.css": {
"media": "print"
}
},
"skinStyles": {
"minerva": "ext.cite.styles.minerva.less"
},
"targets": [
"desktop",
"mobile"
]
},
"ext.cite.style": {
"class": "Cite\\ResourceLoader\\CiteCSSFileModule",
"styles": "ext.cite.style.css",
"targets": [
"desktop",
"mobile"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "Cite/modules"
},
"attributes": {
"CodeMirror": {
"TagModes": {
"ref": "text/mediawiki"
}
},
"EventLogging": {
"Schemas": {
"ReferencePreviewsBaseline": 19489336,
"ReferencePreviewsCite": 19489328
}
},
"VisualEditor": {
"PluginModules": [
"ext.cite.visualEditor"
]
}
},
"ConfigRegistry": {
"cite": "GlobalVarConfig::newInstance"
},
"config": {
"CiteBookReferencing": {
"description": "Development feature flag for Book Referencing, a way to nest citations. Please don't enable in production.",
"public": true,
"value": false
},
"CiteVisualEditorOtherGroup": {
"public": true,
"value": false
},
"CiteResponsiveReferences": {
"public": true,
"value": true
}
},
"AutoloadNamespaces": {
"Cite\\": "src/"
},
"TrackingCategories": [
"cite-tracking-category-cite-error"
],
"manifest_version": 2
}