X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialProtectedtitles.php;h=00bfba946da6972c6c6faa52f22e4981fda84710;hb=30867990148a6c8078cd5139726a53308b82b2ed;hp=fa12f507f9b0276875b95785c4c7f545017007e4;hpb=d564a821628b2ac03b6b5cbaa761409d17e82dfa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialProtectedtitles.php b/includes/specials/SpecialProtectedtitles.php index fa12f507f9..00bfba946d 100644 --- a/includes/specials/SpecialProtectedtitles.php +++ b/includes/specials/SpecialProtectedtitles.php @@ -112,7 +112,7 @@ class SpecialProtectedtitles extends SpecialPage { * @return string * @private */ - function showOptions( $namespace, $type = 'edit', $level ) { + function showOptions( $namespace, $type, $level ) { $formDescriptor = [ 'namespace' => [ 'class' => 'HTMLSelectNamespace', @@ -125,7 +125,7 @@ class SpecialProtectedtitles extends SpecialPage { 'levelmenu' => $this->getLevelMenu( $level ) ]; - $htmlForm = new HTMLForm( $formDescriptor, $this->getContext() ); + $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() ); $htmlForm ->setMethod( 'get' ) ->setWrapperLegendMsg( 'protectedtitles' )