diff --git a/includes/Hooks/HookUtils.php b/includes/Hooks/HookUtils.php index 550374075..1dc9926a5 100644 --- a/includes/Hooks/HookUtils.php +++ b/includes/Hooks/HookUtils.php @@ -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' + ) ); }