mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Merge "Add 'wpTextbox1' to parameters that disable new topic tool"
This commit is contained in:
commit
66780457e4
|
@ -488,7 +488,9 @@ class HookUtils {
|
|||
// Adding a new topic with preloaded text is not supported yet (T269310)
|
||||
!(
|
||||
$req->getCheck( 'editintro' ) || $req->getCheck( 'preload' ) ||
|
||||
$req->getCheck( 'preloadparams' ) || $req->getCheck( 'preloadtitle' )
|
||||
$req->getCheck( 'preloadparams' ) || $req->getCheck( 'preloadtitle' ) ||
|
||||
// Switching or previewing from an external tool (T316333)
|
||||
$req->getCheck( 'wpTextbox1' )
|
||||
) &&
|
||||
// User has new topic tool enabled (and not using &dtenable=0)
|
||||
static::isFeatureEnabledForOutput( $out, static::NEWTOPICTOOL )
|
||||
|
|
Loading…
Reference in a new issue