mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Make visualenhancements_pageframe features respect visualenhancements preference
Follow-up to I481e885b54a1aeb9dd69a08dc614ab5f4f94b41e. Change-Id: Ia62a8b4441371956457a40117e8f4d05cdf2cb1c
This commit is contained in:
parent
837591f12e
commit
a0647956de
|
@ -350,6 +350,14 @@ class HookUtils {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Subfeatures are disabled if the main feature is disabled
|
||||
if ( (
|
||||
$feature === static::VISUALENHANCEMENTS_REPLY ||
|
||||
$feature === static::VISUALENHANCEMENTS_PAGEFRAME
|
||||
) && !self::isFeatureEnabledForOutput( $output, static::VISUALENHANCEMENTS ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// ?dtenable=1 overrides all user and title checks
|
||||
$queryEnable = $output->getRequest()->getRawVal( 'dtenable' ) ?:
|
||||
// Extra hack for parses from API, where this parameter isn't passed to derivative requests
|
||||
|
|
Loading…
Reference in a new issue