X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLTitlesMultiselectField.php;h=bd1d2d3f8e038159bd4fa0e11ed7f2715cdfeacc;hb=e1b3c3d96b6051c768f6ad4bcd287a1b8ab2864e;hp=7b099ca0d0b499223e342768d5b41083281181a6;hpb=d24cb5054ca51282c82db63cc78fc99d2e23dbbf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLTitlesMultiselectField.php b/includes/htmlform/fields/HTMLTitlesMultiselectField.php index 7b099ca0d0..bd1d2d3f8e 100644 --- a/includes/htmlform/fields/HTMLTitlesMultiselectField.php +++ b/includes/htmlform/fields/HTMLTitlesMultiselectField.php @@ -53,10 +53,8 @@ class HTMLTitlesMultiselectField extends HTMLTitleTextField { // $value is a string, because HTMLForm fields store their values as strings $titlesArray = explode( "\n", $value ); - if ( isset( $this->mParams['max'] ) ) { - if ( count( $titlesArray ) > $this->mParams['max'] ) { - return $this->msg( 'htmlform-int-toohigh', $this->mParams['max'] ); - } + if ( isset( $this->mParams['max'] ) && ( count( $titlesArray ) > $this->mParams['max'] ) ) { + return $this->msg( 'htmlform-int-toohigh', $this->mParams['max'] ); } foreach ( $titlesArray as $title ) { @@ -102,6 +100,9 @@ class HTMLTitlesMultiselectField extends HTMLTitleTextField { if ( isset( $this->mParams['showMissing'] ) ) { $params['showMissing'] = $this->mParams['showMissing']; } + if ( isset( $this->mParams['excludeDynamicNamespaces'] ) ) { + $params['excludeDynamicNamespaces'] = $this->mParams['excludeDynamicNamespaces']; + } if ( isset( $this->mParams['input'] ) ) { $params['input'] = $this->mParams['input'];