Index: branches/wmf/1.18wmf1/includes/parser/Parser.php |
— | — | @@ -504,6 +504,22 @@ |
505 | 505 | } |
506 | 506 | |
507 | 507 | /** |
| 508 | + * Recursive parser entry point that can be called from an extension tag |
| 509 | + * hook. |
| 510 | + * |
| 511 | + * @param $text String: text to be expanded |
| 512 | + * @param $frame PPFrame: The frame to use for expanding any template variables |
| 513 | + * @return String |
| 514 | + */ |
| 515 | + public function recursivePreprocess( $text, $frame = false ) { |
| 516 | + wfProfileIn( __METHOD__ ); |
| 517 | + $text = $this->replaceVariables( $text, $frame ); |
| 518 | + $text = $this->mStripState->unstripBoth( $text ); |
| 519 | + wfProfileOut( __METHOD__ ); |
| 520 | + return $text; |
| 521 | + } |
| 522 | + |
| 523 | + /** |
508 | 524 | * Process the wikitext for the ?preload= feature. (bug 5210) |
509 | 525 | * |
510 | 526 | * <noinclude>, <includeonly> etc. are parsed as for template transclusion, |
Property changes on: branches/wmf/1.18wmf1/includes/parser/Parser.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
511 | 527 | Merged /trunk/phase3/includes/parser/Parser.php:r94480 |