aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser/Preprocessor.php
diff options
context:
space:
mode:
authorDaniel Kinzler <daniel@users.mediawiki.org>2008-06-26 13:05:40 +0000
committerDaniel Kinzler <daniel@users.mediawiki.org>2008-06-26 13:05:40 +0000
commit24d5e941a06f5b493bbba962b82036461d92dc87 (patch)
treeacd3f9d892a07d28d26af915c50ea16ba028e383 /includes/parser/Preprocessor.php
parent90ab7bdf14348431c3e7c89c34f8061f8e5ddd1a (diff)
downloadmediawikicore-24d5e941a06f5b493bbba962b82036461d92dc87.tar.gz
mediawikicore-24d5e941a06f5b493bbba962b82036461d92dc87.zip
added PPCustomFrame classes to restore ability to use replaceVariables with a custom map of values. This should unbreak some extensions that were broken by the new PP stuff, like the News extension.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/36668
Diffstat (limited to 'includes/parser/Preprocessor.php')
-rw-r--r--includes/parser/Preprocessor.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/parser/Preprocessor.php b/includes/parser/Preprocessor.php
index 322e197f7e03..1a33ac7fc179 100644
--- a/includes/parser/Preprocessor.php
+++ b/includes/parser/Preprocessor.php
@@ -10,6 +10,9 @@ interface Preprocessor {
/** Create a new top-level frame for expansion of a page */
function newFrame();
+ /** Create a new custom frame for programmatic use of parameter replacement as used in some extensions */
+ function newCustomFrame( $args );
+
/** Preprocess text to a PPNode */
function preprocessToObj( $text, $flags = 0 );
}