mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
Add 'wpTextbox1' to parameters that disable new topic tool
Bug: T316333 Change-Id: Id73af455df97b26334bf8a450bc6d0ac95deb9bd
This commit is contained in:
parent
0e6cd67d16
commit
cf4b6015a3
|
@ -447,7 +447,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