There's been some confusion since we updated the special page Special:MobileOptions.
If you are a third party (means: not Wikimedia) that uses MediaWiki and the MobileFrontend extension on your server, since MobileFrontend beta features are disabled by default (via $wgMFEnableBeta = false), the settings page is empty.
Replication steps
Load up an instance of MobileFrontend:
In LocalSettings.php add:
$wgMFEnableBeta = false; $wgMFAdvancedMobileContributions = false; $wgMFEnableFontChanger = [ 'base' => false, 'stable' => false ];
Click the hamburger menu - the settings page loads but there is nothing there!
Expected: The link should not have shown. The settings page should 404.
Acceptance criteria
- Special:MobileOptions should render "No settings are available". which displays when wgMFEnableFontChanger is not enabled. This should show when javascript is disabled (use a noscript tag) or when JS is enabled but the feature flag is not (render a message)
- If $wgMFEnableFontChanger , $wgMFEnableBeta and $wgMFAdvancedMobileContributions are all disabled for the current user, do not render the settings link in the menu
- If $wgMFEnableFontChanger , $wgMFEnableBeta and $wgMFAdvancedMobileContributions are all disabled for the current user, visiting Special:MobileOptions should 404.
Note: If $wgMFEnableFontChanger is enabled to keep things simple, we will still render the settings link for non-JS users.
Before starting
Take a look at the code for wgMFEnableFontChanger to understand how our feature flags work and how to use includes/features/FeaturesManager.php .