Index: branches/REL1_14/extensions/Cite/Cite_body.php |
— | — | @@ -426,7 +426,7 @@ |
427 | 427 | // Named references with >1 occurrences |
428 | 428 | else { |
429 | 429 | $links = array(); |
430 | | - //for group handling, we have an extra key here. |
| 430 | +//for group handling, we have an extra key here. |
431 | 431 | for ( $i = 0; $i <= $val['count']; ++$i ) { |
432 | 432 | $links[] = wfMsgForContentNoTrans( |
433 | 433 | 'cite_references_link_many_format', |
— | — | @@ -665,23 +665,6 @@ |
666 | 666 | |
667 | 667 | return true; |
668 | 668 | } |
669 | | - |
670 | | - /** |
671 | | - * Called at the end of page processing to append an error if refs were |
672 | | - * used without a references tag. |
673 | | - */ |
674 | | - function checkRefsNoReferences( &$parser, &$text ) { |
675 | | - foreach ( $this->mRefs as $group => $refs ) { |
676 | | - if ( count( $refs ) == 0 ) continue; |
677 | | - $text .= "\n<br />"; |
678 | | - if ( $group == CITE_DEFAULT_GROUP ) { |
679 | | - $text .= $this->error( 'cite_error_refs_without_references' ); |
680 | | - } else { |
681 | | - $text .= $this->error( 'cite_error_group_refs_without_references', htmlspecialchars( $group ) ); |
682 | | - } |
683 | | - } |
684 | | - return true; |
685 | | - } |
686 | 669 | |
687 | 670 | /** |
688 | 671 | * Initialize the parser hooks |
— | — | @@ -693,7 +676,6 @@ |
694 | 677 | $wgParser->setHook( 'references' , array( &$this, 'references' ) ); |
695 | 678 | |
696 | 679 | $wgHooks['ParserClearState'][] = array( &$this, 'clearState' ); |
697 | | - $wgHooks['ParserBeforeTidy'][] = array( &$this, 'checkRefsNoReferences' ); |
698 | 680 | } |
699 | 681 | |
700 | 682 | /** |
Index: branches/REL1_14/extensions/Cite/Cite.i18n.php |
— | — | @@ -44,8 +44,6 @@ |
45 | 45 | 'cite_error_references_no_text' => 'Invalid <code><ref></code> tag; |
46 | 46 | no text was provided for refs named <code>$1</code>', |
47 | 47 | 'cite_error_included_ref' => 'Closing </ref> missing for <ref> tag', |
48 | | - 'cite_error_refs_without_references' => '<code><ref></code> tags exist, but no <code><references/></code> tag was found', |
49 | | - 'cite_error_group_refs_without_references' => '<code><ref></code> tags exist for a group named "$1", but no corresponding <code><references group="$1"/></code> tag was found', |
50 | 48 | |
51 | 49 | /* |
52 | 50 | Output formatting |
Index: branches/REL1_14/extensions/Cite/citeParserTests.txt |
— | — | @@ -11,7 +11,6 @@ |
12 | 12 | !! result |
13 | 13 | <p>Wikipedia rocks!<sup id="cite_ref-0" class="reference"><a href="#cite_note-0" title="">[1]</a></sup> |
14 | 14 | </p> |
15 | | -<br /><strong class="error">Cite error: <code><ref></code> tags exist, but no <code><references/></code> tag was found</strong> |
16 | 15 | !! end |
17 | 16 | |
18 | 17 | !! test |
— | — | @@ -130,7 +129,6 @@ |
131 | 130 | !! result |
132 | 131 | <p>1337<sup id="cite_ref-0" class="reference"><a href="#cite_note-0" title="">[1]</a></sup> |
133 | 132 | </p> |
134 | | -<br /><strong class="error">Cite error: <code><ref></code> tags exist, but no <code><references/></code> tag was found</strong> |
135 | 133 | !! end |
136 | 134 | |
137 | 135 | !! test |
— | — | @@ -238,8 +236,8 @@ |
239 | 237 | </p><p><strong class="error">Cite error: Invalid <code><references></code> tag; |
240 | 238 | no input is allowed. Use <code><references /></code></strong> |
241 | 239 | </p><p><strong class="error">Cite error: Invalid <code><references></code> tag; |
242 | | -parameter "group" is allowed only. |
243 | | -Use <code><references /></code>, or <code><references group="..." /></code></strong> |
| 240 | +no parameters are allowed. |
| 241 | +Use <code><references /></code></strong> |
244 | 242 | </p> |
245 | 243 | <ol class="references"><li id="cite_note-0"><a href="#cite_ref-0" title="">↑</a> Also zero, but differently! (Normal ref)</li> |
246 | 244 | <li id="cite_note-bar"><a href="#cite_ref-bar_0" title="">↑</a> <strong class="error">Cite error: Invalid <code><ref></code> tag; |