Merge "Don't enable visual enhancements CSS on mobile when feature is "unavailable""

This commit is contained in:
jenkins-bot 2022-07-12 00:26:22 +00:00 committed by Gerrit Code Review
commit d35ff76d81

View file

@ -308,7 +308,12 @@ class HookUtils {
// Even though mobile ignores user preferences, TOPICSUBSCRIPTION must
// still be disabled if the user isn't registered.
( $feature === static::TOPICSUBSCRIPTION && $output->getUser()->isRegistered() ) ||
$feature === static::VISUALENHANCEMENTS
// Even though mobile ignores user preferences, VISUALENHANCEMENTS must
// still be disabled if is unavailable on the wiki.
(
$feature === static::VISUALENHANCEMENTS &&
$dtConfig->get( 'DiscussionTools_' . $feature ) !== 'unavailable'
)
);
}