mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Merge "Don't enable visual enhancements CSS on mobile when feature is "unavailable""
This commit is contained in:
commit
d35ff76d81
|
@ -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'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue