Merge "Special:Upload should not crash on failing previews"
[mediawiki.git] / includes / htmlform / fields / HTMLSelectNamespaceWithButton.php
blob52259836dfd120c5a5a09d1a97220fdd2291e1cc
1 <?php
2 /**
3 * Creates a Html::namespaceSelector input field with a button assigned to the input field.
4 */
5 class HTMLSelectNamespaceWithButton extends HTMLSelectNamespace {
6 /** @var HTMLFormFieldWithButton $mClassWithButton */
7 protected $mClassWithButton = null;
9 public function __construct( $info ) {
10 $this->mClassWithButton = new HTMLFormFieldWithButton( $info );
11 parent::__construct( $info );
14 public function getInputHTML( $value ) {
15 return $this->mClassWithButton->getElement( parent::getInputHTML( $value ) );