r85766 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85765‎ | r85766 | r85767 >
Date:18:16, 10 April 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fix for handling 'maxlength' parameter in 'text with autocomplete' input
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormInputs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php
@@ -911,7 +911,7 @@
912912 $inputAttrs['disabled'] = 'disabled';
913913 }
914914 if ( array_key_exists( 'maxlength', $other_args ) ) {
915 - $text .= ' maxlength="' . $other_args['maxlength'] . '"';
 915+ $inputAttrs['maxlength'] = $other_args['maxlength'];
916916 }
917917 $text = "\n\t" . Xml::element( 'input', $inputAttrs ) . "\n";
918918