Index: trunk/extensions/Cite/Cite_body.php |
— | — | @@ -982,10 +982,11 @@ |
983 | 983 | * Gets run when Parser::clearState() gets run, since we don't |
984 | 984 | * want the counts to transcend pages and other instances |
985 | 985 | */ |
986 | | - function clearState() { |
| 986 | + function clearState( $parser ) { |
| 987 | + global $wgParser; |
987 | 988 | # Don't clear state when we're in the middle of parsing |
988 | | - # a <ref> tag |
989 | | - if ( $this->mInCite || $this->mInReferences ) { |
| 989 | + # a <ref> tag or parsing messages |
| 990 | + if ( $this->mInCite || $this->mInReferences || $parser !== $wgParser ) { |
990 | 991 | return true; |
991 | 992 | } |
992 | 993 | |