Added the ability to define the value in HTMLSelectNamespace.
Bug: T98496
Follow-Up: I8503c391a40f1654f8570578a9de9015d86c9845
Change-Id: Ic6a871507a027d28b3aeb1efeb9abbceb5734a9e
*/
class HTMLSelectNamespace extends HTMLFormField {
function getInputHTML( $value ) {
+ $allValue = ( isset( $this->mParams['all'] ) ? $this->mParams['all'] : 'all' );
+
return Html::namespaceSelector(
array(
'selected' => $value,
- 'all' => 'all'
+ 'all' => $allValue
), array(
'name' => $this->mName,
'id' => $this->mID,
'label-message' => 'linksearch-ns',
'default' => $namespace,
'id' => 'namespace',
+ 'all' => '',
'cssclass' => 'namespaceselector',
),
);