Index: branches/wmf/1.16wmf4/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 | | - $wgOut->addHTML( Xml::element( 'option', |
170 | | - array( 'value' => $branchPath ), $branchName ) . "\n" ); |
| 172 | + $wgOut->addHTML( Xml::option( $branchName, $branchPath, ($selected == 1) ) ); |
| 173 | + |
| 174 | + $selected++; |
171 | 175 | } |
172 | 176 | $wgOut->addHTML( |
173 | 177 | Xml::closeElement( 'select' ) . ' ' . |
Property changes on: branches/wmf/1.16wmf4/extensions/ExtensionDistributor |
___________________________________________________________________ |
Modified: svn:mergeinfo |
174 | 178 | Merged /trunk/extensions/ExtensionDistributor:r65181,65209 |