r113938 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113937‎ | r113938 | r113939 >
Date:17:40, 15 March 2012
Author:reedy
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.19wmf1 (modified) (history)
  • /branches/wmf/1.19wmf1/includes (modified) (history)
  • /branches/wmf/1.19wmf1/includes/RecentChange.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/includes/RecentChange.php
@@ -166,7 +166,7 @@
167167 * @param $noudp bool
168168 */
169169 public function save( $noudp = false ) {
170 - global $wgLocalInterwiki, $wgPutIPinRC;
 170+ global $wgLocalInterwiki, $wgPutIPinRC, $wgContLang;
171171
172172 $dbw = wfGetDB( DB_MASTER );
173173 if( !is_array($this->mExtra) ) {
@@ -183,6 +183,9 @@
184184 unset( $this->mAttribs['rc_ip'] );
185185 }
186186
 187+ # Make sure summary is truncated (whole multibyte characters)
 188+ $this->mAttribs['rc_comment'] = $wgContLang->truncate( $this->mAttribs['rc_comment'], 255 );
 189+
187190 # Fixup database timestamps
188191 $this->mAttribs['rc_timestamp'] = $dbw->timestamp($this->mAttribs['rc_timestamp']);
189192 $this->mAttribs['rc_cur_time'] = $dbw->timestamp($this->mAttribs['rc_cur_time']);
Property changes on: branches/wmf/1.19wmf1/includes
___________________________________________________________________
Modified: svn:mergeinfo
190193 Merged /trunk/phase3/includes:r113171
Property changes on: branches/wmf/1.19wmf1
___________________________________________________________________
Modified: svn:mergeinfo
191194 Merged /trunk/phase3:r113171

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113171r110955: also truncate rc_comment for log entries. This adds the code in save...aaron19:38, 6 March 2012

Status & tagging log