fix for bug 15770, allow <ref name=whatever></ref> for compatability with #tag

This commit is contained in:
Steve Sanbeg 2008-10-01 19:56:40 +00:00
parent 0df2c0436a
commit 2cd561ea0e

View file

@ -134,7 +134,10 @@ class Cite {
# <ref ...></ref>. This construct is always invalid: either
# it's a contentful ref, or it's a named duplicate and should
# be <ref ... />.
return $this->error( 'cite_error_ref_no_input' );
if ( $key == false )
return $this->error( 'cite_error_ref_no_input' );
else
$str = null;
}
if( $key === false ) {