Don't double-parse messages, it breaks lots of things. Fixes bug #17442.

This commit is contained in:
Tim Starling 2009-02-11 06:34:39 +00:00
parent 501b0e4cff
commit 813c686a03

View file

@ -123,7 +123,7 @@ class Cite {
return $ret;
}
}
function guardedRef( $str, $argv, $parser, $default_group=CITE_DEFAULT_GROUP ) {
$this->mParser = $parser;
@ -709,7 +709,7 @@ class Cite {
*/
function setHooks() {
global $wgParser, $wgHooks;
$wgParser->setHook( 'ref' , array( &$this, 'ref' ) );
$wgParser->setHook( 'references' , array( &$this, 'references' ) );
@ -731,7 +731,7 @@ class Cite {
return
$this->parse(
'<strong class="error">' .
wfMsg( 'cite_error', wfMsg( $key, $param ) ) .
wfMsgNoTrans( 'cite_error', wfMsgNoTrans( $key, $param ) ) .
'</strong>'
);
}