Skip to content

Commit f041dc2

Browse files
committed
Add config and UPO for HTML emails by default
Allowing HTML email only enables the User Preference Option. $wgAllowHTMLEmail = true; And, we set the UPO over-riding the default of 'plain-text' $wgDefaultUserOptions['echo-email-format'] = 'html';
1 parent 07ebd3d commit f041dc2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/roles/mediawiki/templates/LocalSettings.php.j2

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,10 @@ $wgEmailAuthentication = $wgEnableEmail;
313313
$wgPasswordSender = '{{ wgPasswordSender }}';
314314
$wgEmergencyContact = '{{ wgEmergencyContact | default(wgPasswordSender) }}';
315315

316-
317-
318-
316+
// Allowing HTML email only enables the User Preference Option.
317+
// Without this set to true, users cannot choose to receive HTML email.
318+
$wgAllowHTMLEmail = true;
319+
$wgDefaultUserOptions['echo-email-format'] = 'html'; // default = plain-text
319320

320321

321322

0 commit comments

Comments
 (0)