r56597 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56596‎ | r56597 | r56598 >
Date:13:58, 18 September 2009
Author:werdna
Status:ok
Tags:
Comment:
Merge r56184, bugfix for preferences regression caused by new Html class with different parameter ordering.
Modified paths:
  • /branches/wmf-deployment/includes/HTMLForm.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/includes/HTMLForm.php
@@ -717,7 +717,7 @@
718718 static $jsAdded = false;
719719
720720 function __construct( $params ) {
721 - if( !in_array( 'other', $params['options'] ) ) {
 721+ if( !in_array( 'other', $params['options'], true ) ) {
722722 $params['options'][wfMsg( 'htmlform-selectorother-other' )] = 'other';
723723 }
724724
@@ -748,7 +748,7 @@
749749
750750 $select->setAttribute( 'class', 'mw-htmlform-select-or-other' );
751751
752 - $tbAttribs = array( 'id' => $this->mID . '-other' );
 752+ $tbAttribs = array( 'id' => $this->mID . '-other', 'size' => $this->getSize() );
753753 if( !empty( $this->mParams['disabled'] ) ) {
754754 $select->setAttribute( 'disabled', 'disabled' );
755755 $tbAttribs['disabled'] = 'disabled';
@@ -761,8 +761,8 @@
762762 }
763763
764764 $textbox = Html::input( $this->mName . '-other',
765 - $this->getSize(),
766 - $valInSelect ? 'text' : $value,
 765+ $valInSelect ? '' : $value,
 766+ 'text',
767767 $tbAttribs );
768768
769769 return "$select<br/>\n$textbox";
Property changes on: branches/wmf-deployment/includes/HTMLForm.php
___________________________________________________________________
Name: svn:mergeinfo
770770 + /branches/REL1_15/phase3/includes/HTMLForm.php:51646
/branches/wmf-deployment/includes/HTMLForm.php:53381
/trunk/phase3/includes/HTMLForm.php:56184,56213,56215-56216,56218,56334-56336,56338,56340,56343,56345,56347,56350

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r56184* (bug 20556) Stub threshold's "other" <input> in Special:Preferences now has...ialex15:53, 11 September 2009

Status & tagging log