Skip to content

Commit

Permalink
Replace use of Parser::$mStripState, deprecated in 1.35
Browse files Browse the repository at this point in the history
The replacement, Parser::getStripState(), was added to MediaWiki in
1.34.  But in fact, $parser->insertStripItem() hasn't required a
second parameter since MW 1.12.0 (commit b6dba5bcfd3).  Bumped
minumum required MediaWiki version to 1.12.0.

Bug: T275160
Change-Id: Ia04f1aac1d8ae4ea16c98cfbbe72195fffe653b6
  • Loading branch information
cscott committed Feb 19, 2021
1 parent 638b261 commit 183b7a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SemanticRatingHtmlRenderer.php
Expand Up @@ -84,7 +84,7 @@ private function render( $parser, $params ) {

public function renderInline( $parser, $params ) {
$output = $this->render( $parser, $params );
return array( $parser->insertStripItem( $output, $parser->mStripState ),
return array( $parser->insertStripItem( $output ),
'noparse' => false, 'isHTML' => true );
}

Expand Down
3 changes: 3 additions & 0 deletions extension.json
Expand Up @@ -9,6 +9,9 @@
"descriptionmsg": "semanticrating-desc",
"license-name": "MIT",
"type": "semantic",
"requires": {
"MediaWiki": ">= 1.12.0"
},
"MessagesDirs": {
"SemanticRating": [
"i18n"
Expand Down

0 comments on commit 183b7a5

Please sign in to comment.