Add custom label text setting to be used for email output

label-raw is likely to contain HTML which we don't want

Bug: T96087
Change-Id: Ia3ee1e9f56bec9129afb13e2af845717744a5c43
This commit is contained in:
Alex Monk 2015-04-15 00:10:37 +01:00 committed by BryanDavis
parent a913c98f3d
commit 0d15b02444
1 changed files with 3 additions and 1 deletions

View File

@ -350,7 +350,9 @@ class SpecialContact extends UnlistedSpecialPage {
continue;
}
if ( isset( $field['label-message'] ) ) {
if ( isset( $field['contactpage-email-label'] ) ) {
$name = $field['contactpage-email-label'];
} elseif ( isset( $field['label-message'] ) ) {
$name = wfMessage( $field['label-message'] )->inContentLanguage()->text();
} else {
$name = $field['label'];