r108461 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108460‎ | r108461 | r108462 >
Date:19:13, 9 January 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
MFT r94480 for Translate extension
Modified paths:
  • /branches/wmf/1.18wmf1/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/parser/Parser.php
@@ -504,6 +504,22 @@
505505 }
506506
507507 /**
 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+ /**
508524 * Process the wikitext for the ?preload= feature. (bug 5210)
509525 *
510526 * <noinclude>, <includeonly> etc. are parsed as for template transclusion,
Property changes on: branches/wmf/1.18wmf1/includes/parser/Parser.php
___________________________________________________________________
Modified: svn:mergeinfo
511527 Merged /trunk/phase3/includes/parser/Parser.php:r94480

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94480Added Parser::recursivePreprocess(); like preprocess() but doesn't call start...ialex20:22, 14 August 2011

Status & tagging log