From: Aryeh Gregor Date: Mon, 15 Jan 2007 16:03:27 +0000 (+0000) Subject: Parser::parse() a) is used by Article, CoreParserFunctions, EditPage, JobQueue, Outpu... X-Git-Tag: 1.31.0-rc.0~54380 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=9cd25c1e2ddcde1c6b410599663943e3079cd066;p=lhc%2Fweb%2Fwiklou.git Parser::parse() a) is used by Article, CoreParserFunctions, EditPage, JobQueue, OutputPage, and SkinTemplate; and b) is listed as an entry point in the Parser class documentations. I don't think it's very @private. --- diff --git a/includes/Parser.php b/includes/Parser.php index 32c3fc961f..f8577f9f4e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -262,7 +262,6 @@ class Parser * Convert wikitext to HTML * Do not call this function recursively. * - * @private * @param string $text Text we want to parse * @param Title &$title A title object * @param array $options @@ -271,7 +270,7 @@ class Parser * @param int $revid number to pass in {{REVISIONID}} * @return ParserOutput a ParserOutput */ - function parse( $text, &$title, $options, $linestart = true, $clearState = true, $revid = null ) { + public function parse( $text, &$title, $options, $linestart = true, $clearState = true, $revid = null ) { /** * First pass--just handle sections, pass the rest off * to internalParse() which does all the real work.