diff --git a/Cite_body.php b/Cite_body.php index e2fa2f2..25ad0a0 100644 --- a/Cite_body.php +++ b/Cite_body.php @@ -1103,13 +1103,18 @@ class Cite { } foreach ( $this->mRefs as $group => $refs ) { + if ( $this->mParser !== $parser ) { + wfDebugLog( 'citedebug', 'Cite parser and real parser mismatch.' . $parser->getTitle()->getPrefixedText() . 'vs' . $this->mParser->getTitle()->getPrefixedText() ); + } if ( count( $refs ) == 0 ) { continue; } $text .= "\n
"; if ( $group == CITE_DEFAULT_GROUP ) { + wfDebugLog( 'citedebug', 'Ref error default group on page ' . $parser->getTitle() . ': ' . print_r( $this->mRefs, true ) ); $text .= $this->error( 'cite_error_refs_without_references' ); } else { + wfDebugLog( 'citedebug', 'Ref error group ' . $group . ' on page ' . $parser->getTitle() . ': ' . print_r( $this->mRefs, true ) ); $text .= $this->error( 'cite_error_group_refs_without_references', htmlspecialchars( $group ) ); } }