Correcting r26045, references with no text which are used multiple times should still link back to each use, rather than just the last one.

This commit is contained in:
Thomas Dalton 2007-10-02 21:54:43 +00:00
parent e729797c50
commit 69f694f947

View file

@ -394,7 +394,7 @@ function wfCite() {
'cite_references_link_one',
$this->referencesKey( $key ),
$this->refKey( $key, $val['count'] ),
$val['text']
($val['text']!=''?$val['text']:$this->error(CITE_ERROR_REFERENCES_NO_TEXT))
);
// Named references with >1 occurrences
else {
@ -415,7 +415,7 @@ function wfCite() {
wfMsgForContentNoTrans( 'cite_references_link_many',
$this->referencesKey( $key ),
$list,
$val['text']
($val['text']!=''?$val['text']:$this->error(CITE_ERROR_REFERENCES_NO_TEXT))
);
}
}