http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65216
Revision: 65216 Author: ialex Date: 2010-04-18 11:58:39 +0000 (Sun, 18 Apr 2010) Log Message: ----------- Per report on translatewiki: "namespaces to search" user option always displays all fields unchecked Modified Paths: -------------- trunk/phase3/includes/HTMLForm.php Modified: trunk/phase3/includes/HTMLForm.php =================================================================== --- trunk/phase3/includes/HTMLForm.php 2010-04-18 11:57:19 UTC (rev 65215) +++ trunk/phase3/includes/HTMLForm.php 2010-04-18 11:58:39 UTC (rev 65216) @@ -1270,7 +1270,7 @@ } else { $thisAttribs = array( 'id' => $this->mID . "-$info", 'value' => $info ); - $checkbox = Xml::check( $this->mName . '[]', $info === $value, + $checkbox = Xml::check( $this->mName . '[]', in_array( $info, $value, true ), $attribs + $thisAttribs ); $checkbox .= ' ' . Html::rawElement( 'label', array( 'for' => $this->mID . "-$info" ), $label ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs