mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
synced 2024-11-24 07:33:49 +00:00
Don't double-parse messages, it breaks lots of things. Fixes bug #17442.
This commit is contained in:
parent
501b0e4cff
commit
813c686a03
|
@ -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>'
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue