mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Do not double-parse 'cite_error_references_duplicate_key' error message
This value is supposed to be wikitext, which will be parsed later,
not HTML ready for outputting.
Follow-up to 6c59f47805
.
Bug: T116149
Change-Id: I6d6f474db7c7a075499f94301978572179975749
This commit is contained in:
parent
15f83c8c3f
commit
2e588a7424
|
@ -461,7 +461,7 @@ class Cite {
|
|||
if ( $str != null && $str !== '' && $str !== $this->mRefs[$group][$key]['text'] ) {
|
||||
// two refs with same key and different content
|
||||
// add error message to the original ref
|
||||
$this->mRefs[$group][$key]['text'] .= ' ' . $this->error( 'cite_error_references_duplicate_key', $key );
|
||||
$this->mRefs[$group][$key]['text'] .= ' ' . $this->error( 'cite_error_references_duplicate_key', $key, 'noparse' );
|
||||
}
|
||||
$this->mRefCallStack[] = array( 'increment', $call, $str, $key, $group,
|
||||
$this->mRefs[$group][$key]['key'] );
|
||||
|
|
Loading…
Reference in a new issue