Avoid duplicate IDs on Special:Preferences
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 5 Jul 2018 18:35:03 +0000 (20:35 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 5 Jul 2018 18:38:09 +0000 (20:38 +0200)
commitb41930486fec01826ed4affcf80b0fc470efd907
tree026f3e5e96aaf77f144794bbb81fe72865c1d390
parentb4f2a28c3fbcbb30727858ee8a52184a61c7aa39
Avoid duplicate IDs on Special:Preferences

The value of the 'section' parameter is used to generate some ID
attributes on Special:Preferences. Awkwardly, only the second part
(after the slash) is used, so have to ensure these are unique.

It is also used for the default localisation message for the title of
the section. Override this so that we don't have to rename and
duplicate the messages.

Bug: T198875
Change-Id: I0f22aafc8b2ad860dd42c5373eafdf88e848e3ad
includes/preferences/DefaultPreferencesFactory.php
includes/specials/forms/PreferencesFormLegacy.php
includes/specials/forms/PreferencesFormOOUI.php