X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAllPages.php;h=fc32d2dc1957ff7c1d4eb8cec4649a9c07267188;hb=6782571d28445eeb9cd779c246ac736c0616b1eb;hp=ef05dd15b655d9eea4e4f5c71f3d26e8e92f03f7;hpb=c8c2d83312229284c552ad19baeacc588c63145d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAllPages.php b/includes/specials/SpecialAllPages.php index ef05dd15b6..fc32d2dc19 100644 --- a/includes/specials/SpecialAllPages.php +++ b/includes/specials/SpecialAllPages.php @@ -97,13 +97,13 @@ class SpecialAllPages extends IncludableSpecialPage { * @param int $namespace A namespace constant (default NS_MAIN). * @param string $from DbKey we are starting listing at. * @param string $to DbKey we are ending listing at. - * @param bool $hideRedirects Dont show redirects (default false) + * @param bool $hideRedirects Don't show redirects (default false) */ protected function outputHTMLForm( $namespace = NS_MAIN, $from = '', $to = '', $hideRedirects = false ) { $miserMode = (bool)$this->getConfig()->get( 'MiserMode' ); - $fields = [ + $formDescriptor = [ 'from' => [ 'type' => 'text', 'name' => 'from', @@ -138,13 +138,14 @@ class SpecialAllPages extends IncludableSpecialPage { ]; if ( $miserMode ) { - unset( $fields['hideredirects'] ); + unset( $formDescriptor['hideredirects'] ); } $context = new DerivativeContext( $this->getContext() ); $context->setTitle( $this->getPageTitle() ); // Remove subpage - $form = HTMLForm::factory( 'table', $fields, $context ); - $form->setMethod( 'get' ) + $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $context ); + $htmlForm + ->setMethod( 'get' ) ->setWrapperLegendMsg( 'allpages' ) ->setSubmitTextMsg( 'allpagessubmit' ) ->prepareForm() @@ -155,7 +156,7 @@ class SpecialAllPages extends IncludableSpecialPage { * @param int $namespace (default NS_MAIN) * @param string $from List all pages from this name * @param string $to List all pages to this name - * @param bool $hideredirects Dont show redirects (default false) + * @param bool $hideredirects Don't show redirects (default false) */ function showToplevel( $namespace = NS_MAIN, $from = '', $to = '', $hideredirects = false ) { $from = Title::makeTitleSafe( $namespace, $from ); @@ -168,9 +169,9 @@ class SpecialAllPages extends IncludableSpecialPage { /** * @param int $namespace Namespace (Default NS_MAIN) - * @param string $from List all pages from this name (default false) - * @param string $to List all pages to this name (default false) - * @param bool $hideredirects Dont show redirects (default false) + * @param string|false $from List all pages from this name (default false) + * @param string|false $to List all pages to this name (default false) + * @param bool $hideredirects Don't show redirects (default false) */ function showChunk( $namespace = NS_MAIN, $from = false, $to = false, $hideredirects = false ) { $output = $this->getOutput();