From ba6b0db29226890c95344d59bc324a3500275fe8 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 12 Feb 2022 21:05:23 +0100 Subject: [PATCH] Use HTMLTitleTextField on SpecialLintErrors This gives autocomplete on the special page Change-Id: Ic29cf4c16886609c6689c66aff6ebc28a20879ea --- includes/SpecialLintErrors.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/SpecialLintErrors.php b/includes/SpecialLintErrors.php index 3a13ad71..24734918 100644 --- a/includes/SpecialLintErrors.php +++ b/includes/SpecialLintErrors.php @@ -72,12 +72,11 @@ class SpecialLintErrors extends SpecialPage { protected function showPageNameFilterForm() { $fields = [ 'pagename' => [ - 'type' => 'text', + 'type' => 'title', 'name' => 'pagename', 'label-message' => 'linter-pager-title-header', - 'default' => '', - 'id' => 'pagename', - 'size' => 255, + 'exists' => true, + 'required' => false, ] ]; $form = HTMLForm::factory( 'ooui', $fields, $this->getContext() );