EmailNotification: Add newline before minor edit text
authorAlex Monk <krenair@gmail.com>
Sun, 14 Jan 2018 15:46:05 +0000 (15:46 +0000)
committerMartin Urbanec <martin.urbanec@wikimedia.cz>
Sat, 29 Sep 2018 17:08:13 +0000 (19:08 +0200)
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

includes/mail/EmailNotification.php

index 3144504..d32e93f 100644 (file)
@@ -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() ) {