From 31b0865dd50a133d49492d0bb45eac849853b5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 27 Nov 2005 08:16:59 +0000 Subject: [PATCH] * Updated to use the new revid system in the parser --- SpecialCite.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/SpecialCite.php b/SpecialCite.php index daaf6d155..29f8a9b81 100644 --- a/SpecialCite.php +++ b/SpecialCite.php @@ -132,7 +132,6 @@ function wfSpecialCite() { $this->mTitle =& $title; $this->mArticle =& $article; - $wgHooks['ParserGetVariableValueRevid'][] = array( $this, 'revid' ); $wgHooks['ParserGetVariableValueVarCache'][] = array( $this, 'varCache' ); $this->genParserOptions(); @@ -147,7 +146,8 @@ function wfSpecialCite() { $wgHooks['ParserGetVariableValueTs'][] = array( $this, 'timestamp' ); $msg = wfMsgForContentNoTrans( 'cite_text' ); - $ret = $wgParser->parse( $msg, &$this->mTitle, $this->mParserOptions ); + $this->mArticle->fetchContent(); + $ret = $wgParser->parse( $msg, &$this->mTitle, $this->mParserOptions, false, true, $this->mArticle->getRevIdFetched() ); $wgOut->addHtml( $ret->getText() ); } @@ -177,13 +177,6 @@ function wfSpecialCite() { return true; } - - function revid( &$parser, &$revid ) { - $this->mArticle->fetchContent(); - $revid = $this->mArticle->getRevIdFetched(); - - return false; - } } SpecialPage::addPage( new Cite );