Replace uses of deprecated Language::truncate()

See I2291c69d9df17c1a9e4ab1b7d4cbc73bc51d3ebb for the anticipated
hard-deprecation of this method in core.

Bug: T197492
Change-Id: Idb8b671245771964853eedb60eeaaacd76b5ef13
This commit is contained in:
C. Scott Ananian 2018-06-15 18:25:03 -04:00
parent 875555bc24
commit 9a706dd1c6
2 changed files with 4 additions and 1 deletions

View file

@ -413,7 +413,7 @@ class RSSParser {
break;
default:
$str = $this->escapeTemplateParameter( $item[$info] );
$str = $parser->getFunctionLang()->truncate( $str, $this->ItemMaxLength );
$str = $parser->getFunctionLang()->truncateForVisual( $str, $this->ItemMaxLength );
$str = $this->highlightTerms( $str );
$renderedItem = str_replace( '{{{' . $info . '}}}',
$this->insertStripItem( $str ), $renderedItem );

View file

@ -15,6 +15,9 @@
"Mark A. Hershberger"
],
"version": "2.25.1",
"requires": {
"MediaWiki": ">= 1.31.0"
},
"license-name": "GPL-2.0-or-later",
"url": "https://www.mediawiki.org/wiki/Extension:RSS",
"descriptionmsg": "rss-desc",