mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-09-23 10:21:42 +00:00
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:
parent
875555bc24
commit
9a706dd1c6
|
@ -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 );
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue