Merge "Handle comment truncation in CommentStore"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 5 Sep 2017 18:39:21 +0000 (18:39 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 5 Sep 2017 18:39:21 +0000 (18:39 +0000)
1  2 
includes/CommentStore.php
includes/EditPage.php
includes/Revision.php
includes/changes/RecentChange.php
includes/filerepo/file/LocalFile.php
includes/logging/LogEntry.php
includes/logging/LogPage.php
includes/page/WikiPage.php
tests/phpunit/includes/CommentStoreTest.php

Simple merge
Simple merge
Simple merge
@@@ -315,11 -315,9 +315,8 @@@ class RecentChange 
                # Trim spaces on user supplied text
                $this->mAttribs['rc_comment'] = trim( $this->mAttribs['rc_comment'] );
  
-               # Make sure summary is truncated (whole multibyte characters)
-               $this->mAttribs['rc_comment'] = $wgContLang->truncate( $this->mAttribs['rc_comment'], 255 );
                # Fixup database timestamps
                $this->mAttribs['rc_timestamp'] = $dbw->timestamp( $this->mAttribs['rc_timestamp'] );
 -              $this->mAttribs['rc_id'] = $dbw->nextSequenceValue( 'recentchanges_rc_id_seq' );
  
                # # If we are using foreign keys, an entry of 0 for the page_id will fail, so use NULL
                if ( $this->mAttribs['rc_cur_id'] == 0 ) {
Simple merge
@@@ -593,9 -593,8 +593,7 @@@ class ManualLogEntry extends LogEntryBa
         * @throws MWException
         */
        public function insert( IDatabase $dbw = null ) {
-               global $wgContLang;
                $dbw = $dbw ?: wfGetDB( DB_MASTER );
 -              $id = $dbw->nextSequenceValue( 'logging_log_id_seq' );
  
                if ( $this->timestamp === null ) {
                        $this->timestamp = wfTimestampNow();
Simple merge
Simple merge