* @author Tim Starling
* @author Luke Welling lwelling@wikimedia.org
*/
-use MediaWiki\Linker\LinkTarget;
+use MediaWiki\Linker\LinkTarget;
use MediaWiki\MediaWikiServices;
/**
$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() ) {
/**
* Does the per-user customizations to a notification e-mail (name,
* timestamp in proper timezone, etc) and sends it out.
- * Returns true if the mail was sent successfully.
+ * Returns Status if email was sent successfully or not (Status::newGood()
+ * or Status::newFatal() respectively).
*
* @param User $watchingUser
* @param string $source
- * @return bool
+ * @return Status
* @private
*/
function sendPersonalised( $watchingUser, $source ) {