Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | * @param $noudp bool |
168 | 168 | */ |
169 | 169 | public function save( $noudp = false ) { |
170 | | - global $wgLocalInterwiki, $wgPutIPinRC; |
| 170 | + global $wgLocalInterwiki, $wgPutIPinRC, $wgContLang; |
171 | 171 | |
172 | 172 | $dbw = wfGetDB( DB_MASTER ); |
173 | 173 | if( !is_array($this->mExtra) ) { |
— | — | @@ -183,6 +183,9 @@ |
184 | 184 | unset( $this->mAttribs['rc_ip'] ); |
185 | 185 | } |
186 | 186 | |
| 187 | + # Make sure summary is truncated (whole multibyte characters) |
| 188 | + $this->mAttribs['rc_comment'] = $wgContLang->truncate( $this->mAttribs['rc_comment'], 255 ); |
| 189 | + |
187 | 190 | # Fixup database timestamps |
188 | 191 | $this->mAttribs['rc_timestamp'] = $dbw->timestamp($this->mAttribs['rc_timestamp']); |
189 | 192 | $this->mAttribs['rc_cur_time'] = $dbw->timestamp($this->mAttribs['rc_cur_time']); |