| @@ 530-537 (lines=8) @@ | ||
| 527 | ]; |
|
| 528 | } |
|
| 529 | ||
| 530 | if ( $config->get( 'EnotifWatchlist' ) ) { |
|
| 531 | $defaultPreferences['enotifwatchlistpages'] = [ |
|
| 532 | 'type' => 'toggle', |
|
| 533 | 'section' => 'personal/email', |
|
| 534 | 'label-message' => 'tog-enotifwatchlistpages', |
|
| 535 | 'disabled' => $disableEmailPrefs, |
|
| 536 | ]; |
|
| 537 | } |
|
| 538 | if ( $config->get( 'EnotifUserTalk' ) ) { |
|
| 539 | $defaultPreferences['enotifusertalkpages'] = [ |
|
| 540 | 'type' => 'toggle', |
|
| @@ 538-545 (lines=8) @@ | ||
| 535 | 'disabled' => $disableEmailPrefs, |
|
| 536 | ]; |
|
| 537 | } |
|
| 538 | if ( $config->get( 'EnotifUserTalk' ) ) { |
|
| 539 | $defaultPreferences['enotifusertalkpages'] = [ |
|
| 540 | 'type' => 'toggle', |
|
| 541 | 'section' => 'personal/email', |
|
| 542 | 'label-message' => 'tog-enotifusertalkpages', |
|
| 543 | 'disabled' => $disableEmailPrefs, |
|
| 544 | ]; |
|
| 545 | } |
|
| 546 | if ( $config->get( 'EnotifUserTalk' ) || $config->get( 'EnotifWatchlist' ) ) { |
|
| 547 | if ( $config->get( 'EnotifMinorEdits' ) ) { |
|
| 548 | $defaultPreferences['enotifminoredits'] = [ |
|
| @@ 547-554 (lines=8) @@ | ||
| 544 | ]; |
|
| 545 | } |
|
| 546 | if ( $config->get( 'EnotifUserTalk' ) || $config->get( 'EnotifWatchlist' ) ) { |
|
| 547 | if ( $config->get( 'EnotifMinorEdits' ) ) { |
|
| 548 | $defaultPreferences['enotifminoredits'] = [ |
|
| 549 | 'type' => 'toggle', |
|
| 550 | 'section' => 'personal/email', |
|
| 551 | 'label-message' => 'tog-enotifminoredits', |
|
| 552 | 'disabled' => $disableEmailPrefs, |
|
| 553 | ]; |
|
| 554 | } |
|
| 555 | ||
| 556 | if ( $config->get( 'EnotifRevealEditorAddress' ) ) { |
|
| 557 | $defaultPreferences['enotifrevealaddr'] = [ |
|
| @@ 556-563 (lines=8) @@ | ||
| 553 | ]; |
|
| 554 | } |
|
| 555 | ||
| 556 | if ( $config->get( 'EnotifRevealEditorAddress' ) ) { |
|
| 557 | $defaultPreferences['enotifrevealaddr'] = [ |
|
| 558 | 'type' => 'toggle', |
|
| 559 | 'section' => 'personal/email', |
|
| 560 | 'label-message' => 'tog-enotifrevealaddr', |
|
| 561 | 'disabled' => $disableEmailPrefs, |
|
| 562 | ]; |
|
| 563 | } |
|
| 564 | } |
|
| 565 | } |
|
| 566 | } |
|