Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -1706,7 +1706,17 @@ |
1707 | 1707 | |
1708 | 1708 | } else { |
1709 | 1709 | $final = $this->getDefault(); |
1710 | | - $list = $text = ''; |
| 1710 | + |
| 1711 | + $list = 'other'; |
| 1712 | + $text = $final; |
| 1713 | + foreach ( $this->mFlatOptions as $option ) { |
| 1714 | + $match = $option . wfMsgForContent( 'colon-separator' ); |
| 1715 | + if( strpos( $text, $match ) === 0 ) { |
| 1716 | + $list = $option; |
| 1717 | + $text = substr( $text, strlen( $match ) ); |
| 1718 | + break; |
| 1719 | + } |
| 1720 | + } |
1711 | 1721 | } |
1712 | 1722 | return array( $final, $list, $text ); |
1713 | 1723 | } |