mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +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
|
// Even though mobile ignores user preferences, TOPICSUBSCRIPTION must
|
||||||
// still be disabled if the user isn't registered.
|
// still be disabled if the user isn't registered.
|
||||||
( $feature === static::TOPICSUBSCRIPTION && $output->getUser()->isRegistered() ) ||
|
( $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