Update RunningStat use statement
[lhc/web/wiklou.git] / includes / logging / LogEntry.php
index 6197d40..bf35d78 100644 (file)
@@ -383,7 +383,7 @@ class RCDatabaseLogEntry extends DatabaseLogEntry {
 
        public function getComment() {
                return CommentStore::newKey( 'rc_comment' )
-                       // Legacy because the row probably used RecentChange::selectFields()
+                       // Legacy because the row may have used RecentChange::selectFields()
                        ->getCommentLegacy( wfGetDB( DB_REPLICA ), $this->row )->text;
        }
 
@@ -593,8 +593,6 @@ class ManualLogEntry extends LogEntryBase {
         * @throws MWException
         */
        public function insert( IDatabase $dbw = null ) {
-               global $wgContLang;
-
                $dbw = $dbw ?: wfGetDB( DB_MASTER );
 
                if ( $this->timestamp === null ) {
@@ -604,9 +602,6 @@ class ManualLogEntry extends LogEntryBase {
                // Trim spaces on user supplied text
                $comment = trim( $this->getComment() );
 
-               // Truncate for whole multibyte characters.
-               $comment = $wgContLang->truncate( $comment, 255 );
-
                $params = $this->getParameters();
                $relations = $this->relations;