mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-12 09:10:32 +00:00
Clean up backwards-compatibility code
Since Cite requires 1.25+ now, the checks for PPFrame::setVolatile(), which was introduced in 1.24, can be removed. Change-Id: I91df2e91b2f7a21b2b1147aa6af194980527f86b
This commit is contained in:
parent
20e26df4fc
commit
5ca090c67d
|
@ -221,9 +221,7 @@ class Cite {
|
|||
$parserOutput->addModules( 'ext.cite.a11y' );
|
||||
$parserOutput->addModuleStyles( 'ext.cite.styles' );
|
||||
|
||||
if ( is_callable( [ $frame, 'setVolatile' ] ) ) {
|
||||
$frame->setVolatile();
|
||||
}
|
||||
$frame->setVolatile();
|
||||
|
||||
// new <ref> tag, we may need to bump the ref data counter
|
||||
// to avoid overwriting a previous group
|
||||
|
@ -636,9 +634,7 @@ class Cite {
|
|||
$this->mInReferences = true;
|
||||
$ret = $this->guardedReferences( $str, $argv, $parser );
|
||||
$this->mInReferences = false;
|
||||
if ( is_callable( [ $frame, 'setVolatile' ] ) ) {
|
||||
$frame->setVolatile();
|
||||
}
|
||||
$frame->setVolatile();
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue