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 "Simplify HTMLTitleTextField::validate"
[lhc/web/wiklou.git]
/
includes
/
specials
/
forms
/
PreferencesFormOOUI.php
diff --git
a/includes/specials/forms/PreferencesFormOOUI.php
b/includes/specials/forms/PreferencesFormOOUI.php
index
423e2bb
..
bf4d9af
100644
(file)
--- a/
includes/specials/forms/PreferencesFormOOUI.php
+++ b/
includes/specials/forms/PreferencesFormOOUI.php
@@
-172,7
+172,7
@@
class PreferencesFormOOUI extends OOUIHTMLForm {
'div',
[
'class' =>
'div',
[
'class' =>
- 'oo-ui-widget oo-ui-widget-enabled oo-ui-optionWidget '.
+ 'oo-ui-widget oo-ui-widget-enabled oo-ui-optionWidget '
.
'oo-ui-tabOptionWidget oo-ui-labelElement' .
( $i === 0 ? ' oo-ui-optionWidget-selected' : '' )
],
'oo-ui-tabOptionWidget oo-ui-labelElement' .
( $i === 0 ? ' oo-ui-optionWidget-selected' : '' )
],
@@
-193,7
+193,7
@@
class PreferencesFormOOUI extends OOUIHTMLForm {
[ 'class' => 'oo-ui-layout oo-ui-panelLayout oo-ui-indexLayout-tabPanel' ],
Html::rawElement(
'div',
[ 'class' => 'oo-ui-layout oo-ui-panelLayout oo-ui-indexLayout-tabPanel' ],
Html::rawElement(
'div',
- [ 'class' => 'oo-ui-widget oo-ui-widget-enabled oo-ui-selectWidget '.
+ [ 'class' => 'oo-ui-widget oo-ui-widget-enabled oo-ui-selectWidget '
.
'oo-ui-selectWidget-depressed oo-ui-tabSelectWidget' ],
implode( $fakeTabs )
)
'oo-ui-selectWidget-depressed oo-ui-tabSelectWidget' ],
implode( $fakeTabs )
)
@@
-213,7
+213,7
@@
class PreferencesFormOOUI extends OOUIHTMLForm {
) .
Html::rawElement(
'div',
) .
Html::rawElement(
'div',
- [ 'class' => 'oo-ui-menuLayout-content' ],
+ [ 'class' => 'oo-ui-menuLayout-content
mw-htmlform-autoinfuse-lazy
' ],
$this->displaySection( $this->mFieldTree, '', 'mw-prefsection-' )
)
)
$this->displaySection( $this->mFieldTree, '', 'mw-prefsection-' )
)
)
@@
-227,7
+227,8
@@
class PreferencesFormOOUI extends OOUIHTMLForm {
* @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;
}