dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bbf735
)
parse() function, simplifying calling of the parser by supplying options from OutputPage
author
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 29 Nov 2004 11:26:24 +0000
(11:26 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 29 Nov 2004 11:26:24 +0000
(11:26 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
f9859e6
..
565d3e8
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-269,6
+269,15
@@
class OutputPage {
$this->addHtml( ob_get_contents() );
ob_end_clean();
}
+
+ /**
+ * Parse wikitext and return the HTML. This is for special pages that add the text later
+ */
+ function parse( $text, $linestart = true ) {
+ global $wgParser, $wgTitle;
+ $parserOutput = $wgParser->parse( $text, $wgTitle, $this->mParserOptions, $linestart );
+ return $parserOutput->getText();
+ }
/**
* @param $article