mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-14 11:18:49 +00:00
Require MW >= 1.29
This commit is contained in:
parent
8a93653f0b
commit
5053750f84
|
@ -9,6 +9,9 @@
|
||||||
"version": "0.3-dev",
|
"version": "0.3-dev",
|
||||||
"type": "parserhook",
|
"type": "parserhook",
|
||||||
"license-name": "GPL-3.0-or-later",
|
"license-name": "GPL-3.0-or-later",
|
||||||
|
"requires": {
|
||||||
|
"MediaWiki": ">= 1.29.0"
|
||||||
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"AllInfoboxesMiserMode": true,
|
"AllInfoboxesMiserMode": true,
|
||||||
"AllInfoboxesSubpagesBlacklist": [ "doc", "draft", "test" ],
|
"AllInfoboxesSubpagesBlacklist": [ "doc", "draft", "test" ],
|
||||||
|
|
|
@ -12,7 +12,10 @@ class MediaWikiParserTest extends MediaWikiTestCase {
|
||||||
$this->parser = new Parser();
|
$this->parser = new Parser();
|
||||||
$title = Title::newFromText( 'test' );
|
$title = Title::newFromText( 'test' );
|
||||||
$options = new ParserOptions();
|
$options = new ParserOptions();
|
||||||
$options->setOption( 'wrapclass', false );
|
// Required for MW >= 1.30
|
||||||
|
if( method_exists ( $options, 'setOption' ) ) {
|
||||||
|
$options->setOption( 'wrapclass', false );
|
||||||
|
}
|
||||||
$this->parser->startExternalParse( $title, $options, 'text', true );
|
$this->parser->startExternalParse( $title, $options, 'text', true );
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue