Index: trunk/phase3/includes/UserMailer.php |
— | — | @@ -137,18 +137,8 @@ |
138 | 138 | global $wgSMTP, $wgEnotifImpersonal; |
139 | 139 | global $wgEnotifMaxRecips, $wgAdditionalMailParams; |
140 | 140 | |
141 | | - if ( is_array( $to ) ) { |
142 | | - $emails = ''; |
143 | | - // This wouldn't be necessary if implode() worked on arrays of |
144 | | - // objects using __toString(). http://bugs.php.net/bug.php?id=36612 |
145 | | - foreach ( $to as $t ) { |
146 | | - $emails .= $t->toString() . ","; |
147 | | - } |
148 | | - $emails = rtrim( $emails, ',' ); |
149 | | - wfDebug( __METHOD__ . ': sending mail to ' . $emails . "\n" ); |
150 | | - } else { |
151 | | - wfDebug( __METHOD__ . ': sending mail to ' . implode( ',', array( $to->toString() ) ) . "\n" ); |
152 | | - } |
| 141 | + $emails = ''; |
| 142 | + wfDebug( __METHOD__ . ': sending mail to ' . implode( ',', array( $to->toString() ) ) . "\n" ); |
153 | 143 | |
154 | 144 | $headers['From'] = $from->toString(); |
155 | 145 | $headers['Return-Path'] = $from->toString(); |