mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 00:05:50 +00:00
18990e6631
When $wgRelatedArticlesShowReadMore was false, while deciding whether to show related articles on the sidebar, we used to incorrectly consider whether BetaFeatures was enabled for the user. BetaFeatures should only be used for enabling ReadMore and not for showing related articles on the sidebar. We also used to show the beta features option for ReadMore even when the ReadMore feature was disabled. Now we only show that option if ReadMore is enabled. Also rename isAbleToShowRelatedPages to isInSidebar to make the function less confusing. Bug: T119926 Change-Id: Ia5e44d94bb20660af711772cab7e3a59f98c931f
110 lines
2.8 KiB
JSON
110 lines
2.8 KiB
JSON
{
|
|
"name": "RelatedArticles",
|
|
"version": "1.2.0",
|
|
"author": [
|
|
"Roland Unger",
|
|
"Hans Musil",
|
|
"Matthias Mullie",
|
|
"Sam Smith"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:RelatedArticles",
|
|
"descriptionmsg": "relatedarticles-desc",
|
|
"license-name": "GPL-2.0",
|
|
"type": "other",
|
|
"AutoloadClasses": {
|
|
"RelatedArticles\\Hooks": "includes/Hooks.php",
|
|
"RelatedArticles\\ReadMoreHooks": "includes/ReadMoreHooks.php"
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"RelatedArticlesMagic": "RelatedArticles.i18n.magic.php"
|
|
},
|
|
"Hooks": {
|
|
"ResourceLoaderTestModules": [
|
|
"RelatedArticles\\ReadMoreHooks::onResourceLoaderTestModules"
|
|
],
|
|
"ParserFirstCallInit": [
|
|
"RelatedArticles\\Hooks::onParserFirstCallInit"
|
|
],
|
|
"ParserClearState": [
|
|
"RelatedArticles\\Hooks::onParserClearState"
|
|
],
|
|
"OutputPageParserOutput": [
|
|
"RelatedArticles\\Hooks::onOutputPageParserOutput"
|
|
],
|
|
"@SkinBuildSidebar": [
|
|
"RelatedArticles\\Hooks::onSkinBuildSidebar"
|
|
],
|
|
"SkinTemplateToolboxEnd": [
|
|
"RelatedArticles\\Hooks::onSkinTemplateToolboxEnd"
|
|
],
|
|
"UnitTestsList": [
|
|
"RelatedArticles\\Hooks::onUnitTestsList"
|
|
],
|
|
"GetBetaFeaturePreferences": [
|
|
"RelatedArticles\\ReadMoreHooks::onGetBetaFeaturePreferences"
|
|
],
|
|
"MakeGlobalVariablesScript": [
|
|
"RelatedArticles\\ReadMoreHooks::onMakeGlobalVariablesScript"
|
|
],
|
|
"BeforePageDisplay": [
|
|
"RelatedArticles\\ReadMoreHooks::onBeforePageDisplay"
|
|
],
|
|
"EventLoggingRegisterSchemas": [
|
|
"RelatedArticles\\ReadMoreHooks::onEventLoggingRegisterSchemas"
|
|
],
|
|
"ResourceLoaderGetConfigVars": [
|
|
"RelatedArticles\\ReadMoreHooks::onResourceLoaderGetConfigVars"
|
|
],
|
|
"ResourceLoaderRegisterModules": [
|
|
"RelatedArticles\\ReadMoreHooks::onResourceLoaderRegisterModules"
|
|
]
|
|
},
|
|
"MessagesDirs": {
|
|
"RelatedArticles": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"manifest_version": 1,
|
|
"ResourceModules": {
|
|
"ext.relatedArticles.readMore.gateway": {
|
|
"scripts": [
|
|
"resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js"
|
|
],
|
|
"dependencies": [
|
|
"oojs"
|
|
],
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
]
|
|
},
|
|
"ext.relatedArticles.readMore.bootstrap": {
|
|
"scripts": [
|
|
"resources/ext.relatedArticles.readMore.bootstrap/index.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.api",
|
|
"ext.relatedArticles.readMore.gateway"
|
|
],
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
]
|
|
}
|
|
},
|
|
"config": {
|
|
"@RelatedArticlesShowReadMore": "If true, shows ReadMore while hiding related articles from the sidebar on desktop.",
|
|
"RelatedArticlesShowReadMore": false,
|
|
"RelatedArticlesUseCirrusSearch": false,
|
|
"RelatedArticlesOnlyUseCirrusSearch": false,
|
|
"RelatedArticlesLoggingSamplingRate": 0.01
|
|
},
|
|
"ConfigRegistry": {
|
|
"RelatedArticles": "GlobalVarConfig::newInstance"
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteExtPath": "RelatedArticles"
|
|
}
|
|
}
|