Index: trunk/extensions/ExtensionDistributor/ExtensionDistributor_body.php |
— | — | @@ -125,10 +125,11 @@ |
126 | 126 | $wgOut->addHTML( Xml::element( 'option', array( 'value' => $extension ), $extension ) . "\n" ); |
127 | 127 | } |
128 | 128 | |
129 | | - $wgOut->addHTML( "</select>" . |
130 | | - Xml::element( 'input', array( 'type' => 'submit', 'name' => 'extdist_submit', |
131 | | - 'value' => wfMsg( 'extdist-submit-extension' ) ) ) . |
132 | | - "</form>\n" ); |
| 129 | + $wgOut->addHTML( |
| 130 | + Xml::closeElement( 'select' ) . ' ' . |
| 131 | + Xml::submitButton( wfMsg( 'extdist-submit-extension' ), array( 'name' => 'extdist_submit' ) ) . |
| 132 | + Xml::closeElement( 'form' ) . "\n" |
| 133 | + ); |
133 | 134 | } |
134 | 135 | |
135 | 136 | function showVersionSelector( $extensionName ) { |
— | — | @@ -167,10 +168,10 @@ |
168 | 169 | $wgOut->addHTML( Xml::element( 'option', |
169 | 170 | array( 'value' => $branchPath ), $branchName ) . "\n" ); |
170 | 171 | } |
171 | | - $wgOut->addHTML( "</select>" . |
172 | | - Xml::element( 'input', array( 'type' => 'submit', 'name' => 'extdist_submit', |
173 | | - 'value' => wfMsg( 'extdist-submit-version' ) ) ) . |
174 | | - "</form>\n" |
| 172 | + $wgOut->addHTML( |
| 173 | + Xml::closeElement( 'select' ) . ' ' . |
| 174 | + Xml::submitButton( wfMsg( 'extdist-submit-version' ), array( 'name' => 'extdist_submit' ) ) . |
| 175 | + Xml::closeElement( 'form' ) . "\n" |
175 | 176 | ); |
176 | 177 | } |
177 | 178 | |