X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLForm.php;h=82cbb40d0c100e0d6aaf0eb7538055cf4499f968;hb=95dc4cba413e41427f4afba8f70e8d422ed87442;hp=c6882c40360d10b80882ddc26836c6c510c9ee13;hpb=fbc9e214e7c6f687e7dc3a3178e60f4164ed9ad6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index c6882c4036..82cbb40d0c 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -159,6 +159,7 @@ class HTMLForm extends ContextSource { 'checkmatrix' => HTMLCheckMatrix::class, 'cloner' => HTMLFormFieldCloner::class, 'autocompleteselect' => HTMLAutoCompleteSelectField::class, + 'language' => HTMLSelectLanguageField::class, 'date' => HTMLDateTimeField::class, 'time' => HTMLDateTimeField::class, 'datetime' => HTMLDateTimeField::class, @@ -173,6 +174,7 @@ class HTMLForm extends ContextSource { 'user' => HTMLUserTextField::class, 'usersmultiselect' => HTMLUsersMultiselectField::class, 'titlesmultiselect' => HTMLTitlesMultiselectField::class, + 'namespacesmultiselect' => HTMLNamespacesMultiselectField::class, ]; public $mFieldData; @@ -344,11 +346,7 @@ class HTMLForm extends ContextSource { $setSection =& $loadedDescriptor; if ( $section ) { - $sectionParts = explode( '/', $section ); - - while ( count( $sectionParts ) ) { - $newName = array_shift( $sectionParts ); - + foreach ( explode( '/', $section ) as $newName ) { if ( !isset( $setSection[$newName] ) ) { $setSection[$newName] = []; } @@ -1285,7 +1283,7 @@ class HTMLForm extends ContextSource { if ( $status->isGood() ) { $elementstr = ''; } else { - $elementstr = $this->getOutput()->parse( + $elementstr = $this->getOutput()->parseAsInterface( $status->getWikiText() ); }