Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -453,7 +453,7 @@ |
454 | 454 | * Expand templates and variables in the text, producing valid, static wikitext. |
455 | 455 | * Also removes comments. |
456 | 456 | */ |
457 | | - function preprocess( $text, $title, $options, $revid = null ) { |
| 457 | + function preprocess( $text, Title $title, ParserOptions $options, $revid = null ) { |
458 | 458 | wfProfileIn( __METHOD__ ); |
459 | 459 | $this->startExternalParse( $title, $options, self::OT_PREPROCESS, true ); |
460 | 460 | if ( $revid !== null ) { |
— | — | @@ -473,7 +473,7 @@ |
474 | 474 | * <noinclude>, <includeonly> etc. are parsed as for template transclusion, |
475 | 475 | * comments, templates, arguments, tags hooks and parser functions are untouched. |
476 | 476 | */ |
477 | | - public function getPreloadText( $text, $title, $options ) { |
| 477 | + public function getPreloadText( $text, Title $title, ParserOptions $options ) { |
478 | 478 | # Parser (re)initialisation |
479 | 479 | $this->startExternalParse( $title, $options, self::OT_PLAIN, true ); |
480 | 480 | |
— | — | @@ -4288,7 +4288,7 @@ |
4289 | 4289 | * Set up some variables which are usually set up in parse() |
4290 | 4290 | * so that an external function can call some class members with confidence |
4291 | 4291 | */ |
4292 | | - public function startExternalParse( &$title, $options, $outputType, $clearState = true ) { |
| 4292 | + public function startExternalParse( Title $title, ParserOptions $options, $outputType, $clearState = true ) { |
4293 | 4293 | $this->setTitle( $title ); |
4294 | 4294 | $this->mOptions = $options; |
4295 | 4295 | $this->setOutputType( $outputType ); |
— | — | @@ -5182,7 +5182,7 @@ |
5183 | 5183 | /** |
5184 | 5184 | * strip/replaceVariables/unstrip for preprocessor regression testing |
5185 | 5185 | */ |
5186 | | - function testSrvus( $text, $title, $options, $outputType = self::OT_HTML ) { |
| 5186 | + function testSrvus( $text, $title, ParserOptions $options, $outputType = self::OT_HTML ) { |
5187 | 5187 | if ( !$title instanceof Title ) { |
5188 | 5188 | $title = Title::newFromText( $title ); |
5189 | 5189 | } |