r40986 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40985‎ | r40986 | r40987 >
Date:15:19, 18 September 2008
Author:greg
Status:old
Tags:
Comment:
Duplicate code
Modified paths:
  • /trunk/phase3/includes/UserMailer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/UserMailer.php
@@ -142,10 +142,6 @@
143143 $headers['MIME-Version'] = '1.0';
144144 $headers['Content-type'] = (is_null($contentType) ?
145145 'text/plain; charset='.$wgOutputEncoding : $contentType);
146 - if(is_null($contentType))
147 - $headers['Content-type'] = 'text/plain; charset='.$wgOutputEncoding;
148 - else
149 - $headers['Content-type'] = $contentType;
150146 $headers['Content-transfer-encoding'] = '8bit';
151147 $headers['Message-ID'] = "<$msgid@" . $wgSMTP['IDHost'] . '>'; // FIXME
152148 $headers['X-Mailer'] = 'MediaWiki mailer';