mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-13 17:53:09 +00:00
* (bug 9807) Don't return invalid empty HTML list from <references/> if no <ref>s present
This commit is contained in:
parent
ba49232be3
commit
775ddb2f1c
4
Cite.php
4
Cite.php
|
@ -343,8 +343,10 @@ function wfCite() {
|
||||||
* @return string XHTML ready for output
|
* @return string XHTML ready for output
|
||||||
*/
|
*/
|
||||||
function referencesFormat() {
|
function referencesFormat() {
|
||||||
$ent = array();
|
if ( count( $this->mRefs ) == 0 )
|
||||||
|
return '';
|
||||||
|
|
||||||
|
$ent = array();
|
||||||
foreach ( $this->mRefs as $k => $v )
|
foreach ( $this->mRefs as $k => $v )
|
||||||
$ent[] = $this->referencesFormatEntry( $k, $v );
|
$ent[] = $this->referencesFormatEntry( $k, $v );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue