mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Remove temporary newsectionlink_enable config
This was intended as a temporary config to facilitate a staged rollout (T331635) which has now completed. Change-Id: I432ec0a24b8e8c12b62556ff6703abff32a2fced
This commit is contained in:
parent
db5ced1db0
commit
5ba0bfa026
|
@ -551,10 +551,6 @@
|
|||
"description": "A dictionary of language codes which will receive an icon in their enhanced reply-button treatment, due to translation being very short (T323537). Language fallbacks will be checked unless a language is explicitly set to `false` (T352289). Normalized language codes are lower case.",
|
||||
"merge_strategy": "provide_default"
|
||||
},
|
||||
"DiscussionTools_visualenhancements_newsectionlink_enable": {
|
||||
"value": true,
|
||||
"description": "Enable visual enhancements on non-talk, non-article namespaces if they have __NEWSECTIONLINK__ magic word. Temporary config for phased rollout (T331635)"
|
||||
},
|
||||
"DiscussionToolsEnablePermalinksBackend": {
|
||||
"value": true,
|
||||
"description": "Enable the permalinks backend. Do not enable this unless the database tables exist."
|
||||
|
|
|
@ -381,7 +381,6 @@ class HookUtils {
|
|||
$dtConfig = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'discussiontools' );
|
||||
// Visual enhancements are only enabled on talk namespaces (T325417) ...
|
||||
return $title->isTalkPage() || (
|
||||
$dtConfig->get( 'DiscussionTools_visualenhancements_newsectionlink_enable' ) &&
|
||||
// ... or __NEWSECTIONLINK__ pages (T331635)
|
||||
static::hasPagePropCached( $title, 'newsectionlink' ) &&
|
||||
// excluding the main namespace, unless it has been configured for signatures
|
||||
|
|
Loading…
Reference in a new issue