X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2Fforms%2FPreferencesFormOOUI.php;h=cfa8f8fa1d57c5c6538361129928493c53166b09;hb=1360a2884ac2ce44b1a81df9fef96b72853c845e;hp=423e2bb80a68730fa3e393d0fbb98a60ff787819;hpb=708f51c2c60b970549f463776faa38318fd11d21;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/forms/PreferencesFormOOUI.php b/includes/specials/forms/PreferencesFormOOUI.php index 423e2bb80a..cfa8f8fa1d 100644 --- a/includes/specials/forms/PreferencesFormOOUI.php +++ b/includes/specials/forms/PreferencesFormOOUI.php @@ -227,7 +227,8 @@ class PreferencesFormOOUI extends OOUIHTMLForm { * @return string */ function getLegend( $key ) { - $legend = parent::getLegend( $key ); + $aliasKey = ( $key === 'optoutwatchlist' || $key === 'optoutrc' ) ? 'opt-out' : $key; + $legend = parent::getLegend( $aliasKey ); Hooks::run( 'PreferencesGetLegend', [ $this, $key, &$legend ] ); return $legend; }