Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F10418
citedebug.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 1:19 AM
2014-11-22 01:19:45 (UTC+0)
Size
1003 B
Referenced Files
None
Subscribers
None
citedebug.patch
View Options
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<br />";
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 ) );
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9899
Default Alt Text
citedebug.patch (1003 B)
Attached To
Mode
T48978: Cite error category rapidly populating with phantom entries
Attached
Detach File
Event Timeline
Log In to Comment