Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | |
160 | 160 | /** |
161 | 161 | * Writes the data in this object to the database |
162 | | - * @param $noudp bool |
| 162 | + * @param $noudp bool |
163 | 163 | */ |
164 | 164 | public function save( $noudp = false ) { |
165 | 165 | global $wgLocalInterwiki, $wgPutIPinRC; |
— | — | @@ -214,10 +214,11 @@ |
215 | 215 | $editor = ($wgUser->getName() == $this->mAttribs['rc_user_text']) ? |
216 | 216 | $wgUser : User::newFromName( $this->mAttribs['rc_user_text'], false ); |
217 | 217 | } |
| 218 | + $title = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] ); |
| 219 | + |
218 | 220 | # @todo FIXME: This would be better as an extension hook |
219 | 221 | $enotif = new EmailNotification(); |
220 | | - $title = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] ); |
221 | | - $enotif->notifyOnPageChange( $editor, $title, |
| 222 | + $status = $enotif->notifyOnPageChange( $editor, $title, |
222 | 223 | $this->mAttribs['rc_timestamp'], |
223 | 224 | $this->mAttribs['rc_comment'], |
224 | 225 | $this->mAttribs['rc_minor'], |
— | — | @@ -731,7 +732,7 @@ |
732 | 733 | # see http://www.irssi.org/documentation/formats for some colour codes. prefix is \003, |
733 | 734 | # no colour (\003) switches back to the term default |
734 | 735 | $fullString = "$titleString\0034 $flag\00310 " . |
735 | | - "\00302$url\003 \0035*\003 \00303$user\003 \0035*\003 $szdiff \00310$comment\003\n"; |
| 736 | + "\00302$url\003 \0035*\003 \00303$user\003 \0035*\003 $szdiff \00310$comment\003\n"; |
736 | 737 | |
737 | 738 | return $fullString; |
738 | 739 | } |