We have startParse() for that
This commit is contained in:
parent
6026ca43ea
commit
759707959c
1 changed files with 1 additions and 4 deletions
|
|
@ -4524,10 +4524,7 @@ class Parser {
|
|||
function cleanSig( $text, $parsing = false ) {
|
||||
if ( !$parsing ) {
|
||||
global $wgTitle;
|
||||
$this->mOptions = new ParserOptions;
|
||||
$this->clearState();
|
||||
$this->setTitle( $wgTitle );
|
||||
$this->setOutputType = self::OT_PREPROCESS;
|
||||
$this->startParse( $wgTitle, new ParserOptions, self::OT_PREPROCESS, true );
|
||||
}
|
||||
|
||||
# Option to disable this feature
|
||||
|
|
|
|||
Loading…
Reference in a new issue