mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
synced 2024-11-24 07:33:49 +00:00
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:
parent
e729797c50
commit
69f694f947
4
Cite.php
4
Cite.php
|
@ -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))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue