Index: trunk/extensions/ExtensionDistributor/ExtensionDistributor_body.php |
— | — | @@ -164,9 +164,13 @@ |
165 | 165 | Xml::element( 'input' , array( 'type' => 'hidden', |
166 | 166 | 'name' => 'extdist_extension', 'value' => $extensionName ) ) . |
167 | 167 | "<select name=\"extdist_version\">\n" ); |
| 168 | + |
| 169 | + $selected = 0; |
| 170 | + |
168 | 171 | foreach ( $versions as $branchPath => $branchName ) { |
169 | 172 | $wgOut->addHTML( Xml::element( 'option', |
170 | | - array( 'value' => $branchPath ), $branchName ) . "\n" ); |
| 173 | + array( 'value' => $branchPath, 'selected' => ( ( $selected == 1 ) ? 'selected' : '' ) ), $branchName ) . "\n" ); |
| 174 | + $selected++; |
171 | 175 | } |
172 | 176 | $wgOut->addHTML( |
173 | 177 | Xml::closeElement( 'select' ) . ' ' . |