*
* @param string $action One of '', 'block', 'protect', 'rights', 'delete',
* 'upload', 'move', 'move_redir'
- * @param Title $target Title object
+ * @param Title $target
* @param string $comment Description associated
* @param array $params Parameters passed later to wfMessage function
* @param null|int|User $doer The user doing the action. null for $wgUser
* @return int The log_id of the inserted log entry
*/
public function addEntry( $action, $target, $comment, $params = [], $doer = null ) {
- global $wgContLang;
-
if ( !is_array( $params ) ) {
$params = [ $params ];
}
# Trim spaces on user supplied text
$comment = trim( $comment );
- # Truncate for whole multibyte characters.
- $comment = $wgContLang->truncate( $comment, 255 );
-
$this->action = $action;
$this->target = $target;
$this->comment = $comment;