r41669 - Code Review

From MediaWiki.org

Jump to: navigation, search
Repository:MediaWiki
Revision:r41668 | r41669 (on ViewVC) | r41670 >
Date:22:26, 4 October 2008
Author:sanbeg
Status:ok
Tags:
Comment:update comment
Modified paths:

Diff [purge]

Index: trunk/extensions/Cite/Cite_body.php
===================================================================
--- trunk/extensions/Cite/Cite_body.php	(revision 41668)
+++ trunk/extensions/Cite/Cite_body.php	(revision 41669)
@@ -131,9 +131,9 @@
 		list($key,$group) = $this->refArg( $argv );
 		
 		if( $str === '' ) {
-			# <ref ...></ref>.  This construct is always invalid: either
-			# it's a contentful ref, or it's a named duplicate and should
-			# be <ref ... />.
+			# <ref ...></ref>.  This construct is  invalid if
+			# it's a contentful ref, but OK if it's a named duplicate and should
+			# be equivalent <ref ... />, for compatability with #tag.
 			if ( $key == false )
 				return $this->error( 'cite_error_ref_no_input' );
 			else
Views
Toolbox