warnings/notices to be thrown.
* (bug 30335) Fix for HTMLForms using GET breaking when non-friendly URLs are
used
+* (bug 28649) Avoiding half truncated multi-byte unicode characters when
+ truncating log comments.
=== API changes in 1.19 ===
* (bug 19838) siprop=interwikimap can now use the interwiki cache.
* @param $doer User object: the user doing the action
*/
public function addEntry( $action, $target, $comment, $params = array(), $doer = null ) {
+ global $wgContLang;
+
if ( !is_array( $params ) ) {
$params = array( $params );
}
$comment = '';
}
+ # Truncate for whole multibyte characters.
+ $comment = $wgContLang->truncate( $comment, 255 );
+
$this->action = $action;
$this->target = $target;
$this->comment = $comment;