Index: trunk/extensions/CodeReview/CodeCommentsListView.php |
— | — | @@ -86,13 +86,7 @@ |
87 | 87 | return $this->mView->messageFragment( $value ); |
88 | 88 | case 'cc_text': |
89 | 89 | # Truncate this, blah blah... |
90 | | - $text = htmlspecialchars($value); |
91 | | - $preview = $wgLang->truncate( $text, 300 ); |
92 | | - if( strlen($preview) < strlen($text) ) { |
93 | | - $preview = substr( $preview, 0, strrpos($preview,' ') ); |
94 | | - $preview .= ' ' . wfMsgForContent( 'ellipsis' ); |
95 | | - } |
96 | | - return $preview; |
| 90 | + return htmlspecialchars( $wgLang->truncate( $value, 300, '...' ) ); |
97 | 91 | case 'cc_timestamp': |
98 | 92 | global $wgLang; |
99 | 93 | return $wgLang->timeanddate( $value, true ); |