aboutsummaryrefslogtreecommitdiffstats
path: root/includes/mail
diff options
context:
space:
mode:
authorAlex Monk <krenair@gmail.com>2018-01-14 15:46:05 +0000
committerMartin Urbanec <martin.urbanec@wikimedia.cz>2018-09-29 19:08:13 +0200
commit02b2086d95e3587a395807f2d96c0a3509f5fc34 (patch)
tree71b1219c1d81b244e9651013fba10258e53101d0 /includes/mail
parent846f600dd0464c593a741e2284e2c2810be3afd6 (diff)
downloadmediawikicore-02b2086d95e3587a395807f2d96c0a3509f5fc34.tar.gz
mediawikicore-02b2086d95e3587a395807f2d96c0a3509f5fc34.zip
EmailNotification: Add newline before minor edit text
Otherwise you get something like this: "Editor's summary: interwiki fix This is a minor edit" It's not entirely clear that the editor's summary has ended and the minor edit text has been added by the software. Change-Id: Iab79b5f8a1f6f319e9fd284835b7a4e86c3f0394
Diffstat (limited to 'includes/mail')
-rw-r--r--includes/mail/EmailNotification.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/mail/EmailNotification.php b/includes/mail/EmailNotification.php
index 314450470e52..d32e93f8b3ae 100644
--- a/includes/mail/EmailNotification.php
+++ b/includes/mail/EmailNotification.php
@@ -342,8 +342,8 @@ class EmailNotification {
$keys['$PAGETITLE'] = $this->title->getPrefixedText();
$keys['$PAGETITLE_URL'] = $this->title->getCanonicalURL();
- $keys['$PAGEMINOREDIT'] = $this->minorEdit ?
- wfMessage( 'enotif_minoredit' )->inContentLanguage()->text() : '';
+ $keys['$PAGEMINOREDIT'] = "\n" . ( $this->minorEdit ?
+ wfMessage( 'enotif_minoredit' )->inContentLanguage()->text() : '' );
$keys['$UNWATCHURL'] = $this->title->getCanonicalURL( 'action=unwatch' );
if ( $this->editor->isAnon() ) {