mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 16:34:21 +00:00
Merge "Remove redundant checks"
This commit is contained in:
commit
aa8ed1d469
|
@ -19,7 +19,7 @@ function ReplyLinksController( $pageContainer ) {
|
|||
|
||||
// "Add topic" link in the skin interface
|
||||
var featuresEnabled = mw.config.get( 'wgDiscussionToolsFeaturesEnabled' ) || {};
|
||||
if ( featuresEnabled.newtopictool && mw.user.options.get( 'discussiontools-newtopictool' ) ) {
|
||||
if ( featuresEnabled.newtopictool ) {
|
||||
// eslint-disable-next-line no-jquery/no-global-selector
|
||||
var $addSectionTab = $( '#ca-addsection' );
|
||||
if ( $addSectionTab.length ) {
|
||||
|
|
|
@ -444,7 +444,7 @@ function init( $container, state ) {
|
|||
}
|
||||
}
|
||||
|
||||
if ( featuresEnabled.topicsubscription && mw.user.options.get( 'discussiontools-topicsubscription' ) ) {
|
||||
if ( featuresEnabled.topicsubscription ) {
|
||||
initTopicSubscriptions( $container );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue