Merge "Avoid conflicts between 2017 wikitext editor and DiscussionTools new topic tool"

This commit is contained in:
jenkins-bot 2021-08-03 16:14:18 +00:00 committed by Gerrit Code Review
commit 21d9f533c8

View file

@ -1252,6 +1252,10 @@
}
function getInitialEditMode() {
if ( mw.config.get( 'wgDiscussionToolsStartNewTopicTool' ) ) {
// Avoid conflicts with DiscussionTools
return false;
}
// On view pages if veaction is correctly set
var m = veactionToMode[ uri.query.veaction ];
if ( isViewPage && init.isAvailable && availableModes.indexOf( m ) !== -1 ) {