http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88971
Revision: 88971
Author: kbrown
Date: 2011-05-27 15:22:36 +0000 (Fri, 27 May 2011)
Log Message:
-----------
Fix bug 20748 and bug 15819.
Modified Paths:
--------------
trunk/extensions/Cite/Cite_body.php
Modified: trunk/extensions/Cite/Cite_body.php
===================================================================
--- trunk/extensions/Cite/Cite_body.php 2011-05-27 14:52:17 UTC (rev 88970)
+++ trunk/extensions/Cite/Cite_body.php 2011-05-27 15:22:36 UTC (rev 88971)
@@ -982,10 +982,11 @@
* Gets run when Parser::clearState() gets run, since we don't
* want the counts to transcend pages and other instances
*/
- function clearState() {
+ function clearState( $parser ) {
+ global $wgParser;
# Don't clear state when we're in the middle of parsing
- # a <ref> tag
- if ( $this->mInCite || $this->mInReferences ) {
+ # a <ref> tag or parsing messages
+ if ( $this->mInCite || $this->mInReferences || $parser !==
$wgParser ) {
return true;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs