From 2e588a74241372231dc2b7e69961feccb18f8bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 21 Oct 2015 13:57:35 +0200 Subject: [PATCH] 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 6c59f478050b6e9ca5aae4a445a4e87c9c16d256. Bug: T116149 Change-Id: I6d6f474db7c7a075499f94301978572179975749 --- Cite_body.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cite_body.php b/Cite_body.php index 75749c886..8c5e8082c 100644 --- a/Cite_body.php +++ b/Cite_body.php @@ -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'] );