| @@ 541-548 (lines=8) @@ | ||
| 538 | ]; |
|
| 539 | } |
|
| 540 | ||
| 541 | if ( $config->get( 'EnotifWatchlist' ) ) { |
|
| 542 | $defaultPreferences['enotifwatchlistpages'] = [ |
|
| 543 | 'type' => 'toggle', |
|
| 544 | 'section' => 'personal/email', |
|
| 545 | 'label-message' => 'tog-enotifwatchlistpages', |
|
| 546 | 'disabled' => $disableEmailPrefs, |
|
| 547 | ]; |
|
| 548 | } |
|
| 549 | if ( $config->get( 'EnotifUserTalk' ) ) { |
|
| 550 | $defaultPreferences['enotifusertalkpages'] = [ |
|
| 551 | 'type' => 'toggle', |
|
| @@ 549-556 (lines=8) @@ | ||
| 546 | 'disabled' => $disableEmailPrefs, |
|
| 547 | ]; |
|
| 548 | } |
|
| 549 | if ( $config->get( 'EnotifUserTalk' ) ) { |
|
| 550 | $defaultPreferences['enotifusertalkpages'] = [ |
|
| 551 | 'type' => 'toggle', |
|
| 552 | 'section' => 'personal/email', |
|
| 553 | 'label-message' => 'tog-enotifusertalkpages', |
|
| 554 | 'disabled' => $disableEmailPrefs, |
|
| 555 | ]; |
|
| 556 | } |
|
| 557 | if ( $config->get( 'EnotifUserTalk' ) || $config->get( 'EnotifWatchlist' ) ) { |
|
| 558 | if ( $config->get( 'EnotifMinorEdits' ) ) { |
|
| 559 | $defaultPreferences['enotifminoredits'] = [ |
|
| @@ 558-565 (lines=8) @@ | ||
| 555 | ]; |
|
| 556 | } |
|
| 557 | if ( $config->get( 'EnotifUserTalk' ) || $config->get( 'EnotifWatchlist' ) ) { |
|
| 558 | if ( $config->get( 'EnotifMinorEdits' ) ) { |
|
| 559 | $defaultPreferences['enotifminoredits'] = [ |
|
| 560 | 'type' => 'toggle', |
|
| 561 | 'section' => 'personal/email', |
|
| 562 | 'label-message' => 'tog-enotifminoredits', |
|
| 563 | 'disabled' => $disableEmailPrefs, |
|
| 564 | ]; |
|
| 565 | } |
|
| 566 | ||
| 567 | if ( $config->get( 'EnotifRevealEditorAddress' ) ) { |
|
| 568 | $defaultPreferences['enotifrevealaddr'] = [ |
|
| @@ 567-574 (lines=8) @@ | ||
| 564 | ]; |
|
| 565 | } |
|
| 566 | ||
| 567 | if ( $config->get( 'EnotifRevealEditorAddress' ) ) { |
|
| 568 | $defaultPreferences['enotifrevealaddr'] = [ |
|
| 569 | 'type' => 'toggle', |
|
| 570 | 'section' => 'personal/email', |
|
| 571 | 'label-message' => 'tog-enotifrevealaddr', |
|
| 572 | 'disabled' => $disableEmailPrefs, |
|
| 573 | ]; |
|
| 574 | } |
|
| 575 | } |
|
| 576 | } |
|
| 577 | } |
|