r93279 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93278‎ | r93279 | r93280 >
Date:15:58, 27 July 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
small style tweaks
Modified paths:
  • /trunk/phase3/includes/UserMailer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/UserMailer.php
@@ -167,7 +167,7 @@
168168 $headers['To'] = 'undisclosed-recipients:;';
169169 }
170170 else {
171 - $headers['To'] = implode( ", ", (array )$dest );
 171+ $headers['To'] = implode( ', ', (array)$dest );
172172 }
173173
174174 if ( $replyto ) {
@@ -215,14 +215,14 @@
216216 }
217217
218218 $headers = array(
219 - "MIME-Version: 1.0",
 219+ 'MIME-Version: 1.0',
220220 "Content-type: $contentType",
221 - "Content-Transfer-Encoding: 8bit",
222 - "X-Mailer: MediaWiki mailer",
223 - "From: " . $from->toString(),
 221+ 'Content-Transfer-Encoding: 8bit',
 222+ 'X-Mailer: MediaWiki mailer',
 223+ 'From: ' . $from->toString(),
224224 );
225225 if ( $replyto ) {
226 - $headers[] = "Reply-To: " . $replyto->toString();
 226+ $headers[] = 'Reply-To: ' . $replyto->toString();
227227 }
228228
229229 $headers = implode( $endl, $headers );
@@ -386,13 +386,14 @@
387387
388388 if ( $wgEnotifUseJobQ ) {
389389 $params = array(
390 - "editor" => $editor->getName(),
391 - "editorID" => $editor->getID(),
392 - "timestamp" => $timestamp,
393 - "summary" => $summary,
394 - "minorEdit" => $minorEdit,
395 - "oldid" => $oldid,
396 - "watchers" => $watchers );
 390+ 'editor' => $editor->getName(),
 391+ 'editorID' => $editor->getID(),
 392+ 'timestamp' => $timestamp,
 393+ 'summary' => $summary,
 394+ 'minorEdit' => $minorEdit,
 395+ 'oldid' => $oldid,
 396+ 'watchers' => $watchers
 397+ );
397398 $job = new EnotifNotifyJob( $title, $params );
398399 $job->insert();
399400 } else {

Status & tagging log