Merge "specials: Simplify return logic of various SpecialUserlogin methods"
[lhc/web/wiklou.git] / includes / htmlform / HTMLSelectNamespace.php
index 9638106..b2ec9ca 100644 (file)
@@ -4,10 +4,12 @@
  */
 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,