r40632 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40631‎ | r40632 | r40633 >
Date:03:55, 9 September 2008
Author:mrzman
Status:old
Tags:
Comment:
(bug 15517) - Use correct error message if group parameter is allowed (message already existed but was apparently unused).
Modified paths:
  • /trunk/extensions/Cite/Cite_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Cite/Cite_body.php
@@ -314,7 +314,9 @@
315315
316316 }
317317
318 - if ( count( $argv ) )
 318+ if ( count( $argv ) && $wgAllowCiteGroups )
 319+ return $this->error( 'cite_error_references_invalid_parameters_group' );
 320+ elseif ( count( $argv ) )
319321 return $this->error( 'cite_error_references_invalid_parameters' );
320322 else
321323 return $this->referencesFormat($group);