Index: trunk/extensions/MoodBar/include/MoodBarHTMLEmailNotification.php |
— | — | @@ -229,7 +229,9 @@ |
230 | 230 | |
231 | 231 | $to = new MailAddress( $user ); |
232 | 232 | |
233 | | - return UserMailer::send( $to, $this->from, $this->subject, $this->body, $this->replyto, $contentType = 'multipart/alternative; boundary=' . $this->mime_boundary ); |
| 233 | + return UserMailer::send( $to, $this->from, $this->subject, |
| 234 | + $this->body, $this->replyto, |
| 235 | + $contentType = 'multipart/alternative; boundary=' . $this->mime_boundary ); |
234 | 236 | } |
235 | 237 | |
236 | 238 | /** |
— | — | @@ -245,7 +247,7 @@ |
246 | 248 | |
247 | 249 | // if clickTracking is not enabled, return the full canonical url for email |
248 | 250 | if ( !class_exists( 'ApiClickTracking' ) ) { |
249 | | - foreach ( $pageObject AS $key => $value ) { |
| 251 | + foreach ( $pageObject as $key => $value ) { |
250 | 252 | $links[$key.'Url'] = $value->getCanonicalURL(); |
251 | 253 | } |
252 | 254 | } |
— | — | @@ -258,7 +260,7 @@ |
259 | 261 | $clickTrackingLink = $wgServer . $wgScriptPath . '/api.php?action=clicktracking&eventid=' . |
260 | 262 | wfUrlencode( $eventid ) . '&token=' . wfUrlencode( $token ); |
261 | 263 | |
262 | | - foreach ( $pageObject AS $key => $value ) { |
| 264 | + foreach ( $pageObject as $key => $value ) { |
263 | 265 | $links[$key.'Url'] = $clickTrackingLink . '&redirectto=' . wfUrlencode( $value->getLinkURL() ) . |
264 | 266 | '&namespacenumber=' . wfUrlencode( $value->getNamespace() ); |
265 | 267 | } |
Index: trunk/extensions/MoodBar/ApiFeedbackDashboardResponse.php |
— | — | @@ -67,7 +67,10 @@ |
68 | 68 | global $wgLang; |
69 | 69 | |
70 | 70 | $EMailNotif = new MoodBarHTMLEmailNotification(); |
71 | | - $EMailNotif->notifyOnRespond( $wgUser, $talkPage, wfTimestampNow(), $item->getProperty('feedback'), $wgLang->truncate( $response, 250 ), $item->getProperty('feedbackitem')->getProperty( 'type' ) ); |
| 71 | + $EMailNotif->notifyOnRespond( $wgUser, $talkPage, wfTimestampNow(), |
| 72 | + $item->getProperty('feedback'), |
| 73 | + $wgLang->truncate( $response, 250 ), |
| 74 | + $item->getProperty('feedbackitem')->getProperty( 'type' ) ); |
72 | 75 | |
73 | 76 | } |
74 | 77 | |