mediawiki-extensions-CiteTh.../extension.json
Kunal Mehta 096f6e91fc Rewrite to avoid messing with global state
The main goal of this rewrite is to not use or mess with any global
state.

The ParserGetVariableValueTs and ParserGetVariableValueVarCache hooks
were replaced with setting the timestamp via
ParserOptions::setTimestamp(). This also means that {{#time:...}} from
ParserFunctions extension will correctly use the page's timestamp
instead of the current one.

Disabling tidy is also done using ParserOptions instead of changing
global state.

Change-Id: Ib2810aa5891c57831380a1a4718656cc09932b96
2016-09-19 16:29:14 -07:00

44 lines
1 KiB
JSON

{
"name": "CiteThisPage",
"author": [
"Ævar Arnfjörð Bjarmason",
"James D. Forrester"
],
"url": "https://www.mediawiki.org/wiki/Extension:CiteThisPage",
"descriptionmsg": "citethispage-desc",
"license-name": "GPL-2.0+",
"type": "specialpage",
"ExtensionMessagesFiles": {
"CiteThisPageAliases": "CiteThisPage.alias.php"
},
"MessagesDirs": {
"CiteThisPage": [
"i18n"
]
},
"Hooks": {
"SkinTemplateBuildNavUrlsNav_urlsAfterPermalink": [
"CiteThisPageHooks::onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink"
],
"BaseTemplateToolbox": "CiteThisPageHooks::onBaseTemplateToolbox"
},
"ResourceModules": {
"ext.citeThisPage": {
"position": "top",
"styles": "ext.citeThisPage.css"
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "CiteThisPage/modules"
},
"SpecialPages": {
"CiteThisPage": "SpecialCiteThisPage"
},
"AutoloadClasses": {
"SpecialCiteThisPage": "SpecialCiteThisPage.php",
"CiteThisPageHooks": "CiteThisPage.hooks.php"
},
"manifest_version": 1
}