dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "registration: Use the correct key for skin dependencies"
[lhc/web/wiklou.git]
/
includes
/
specials
/
forms
/
PreferencesFormLegacy.php
diff --git
a/includes/specials/forms/PreferencesFormLegacy.php
b/includes/specials/forms/PreferencesFormLegacy.php
index
cae895f
..
c1f1026
100644
(file)
--- a/
includes/specials/forms/PreferencesFormLegacy.php
+++ b/
includes/specials/forms/PreferencesFormLegacy.php
@@
-130,7
+130,8
@@
class PreferencesFormLegacy extends HTMLForm {
* @return string
*/
function getLegend( $key ) {
* @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;
}
Hooks::run( 'PreferencesGetLegend', [ $this, $key, &$legend ] );
return $legend;
}