Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/247818
Change subject: Do not double-parse 'cite_error_references_duplicate_key' error
message
......................................................................
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.
Bug: T116149
Change-Id: I6d6f474db7c7a075499f94301978572179975749
---
M Cite_body.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cite
refs/changes/18/247818/1
diff --git a/Cite_body.php b/Cite_body.php
index 75749c8..8c5e808 100644
--- a/Cite_body.php
+++ b/Cite_body.php
@@ -461,7 +461,7 @@
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'] );
--
To view, visit https://gerrit.wikimedia.org/r/247818
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d6f474db7c7a075499f94301978572179975749
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cite
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits