https://bugzilla.wikimedia.org/show_bug.cgi?id=71088

--- Comment #1 from Seb35 <[email protected]> ---
Since the VisualEditor registers its preference 'visualeditor-enable' in the
standard GetPreferences and in the BF’s GetBetaFeaturePreferences, one is be
cancelled.

If BF is loaded before VE (and hence BF’s GetPreferences is before VE’s
GetPreferences), VE takes care and don’t add again the 'visualeditor-enable'.

But if VE is loaded before BF, VE’s GetPreferences first adds its
'visualeditor-enable' then VE’s GetBetaFeaturePreferences erases the previous
value and remplaces it by the 'visualeditor-emable' in the BF syntax, but by
*keeping* the same place in the $prefs array, so the PreferencesForm loads it
in a "wrong" order.

Two non-exclusive solutions:
1. in BF, unset the $prefs[$key] before adding it, to restart the order
(tested, it works)
2. in VE in onGetPreferences function, add a second condition before adding the
'visualeditor-enable' preference "!AutoLoader::loadClass( 'BetaFeatures' )"
(tested, it works)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to