From 06ff3d45f0ebebee4bf7a0d778088b6d5a12c8df Mon Sep 17 00:00:00 2001 From: Yogesh K S Date: Sun, 28 Feb 2016 16:49:03 +0530 Subject: [PATCH] Switch Special:FileDuplicateSearch to OOUI Bug: T117745 Change-Id: I7541244cd06b6ea5c71e7f1e540474e8ae3740b5 --- includes/specials/SpecialFileDuplicateSearch.php | 4 +--- languages/i18n/en.json | 1 - languages/i18n/qqq.json | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index 20c0762bb9..bb82d03da9 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -118,19 +118,17 @@ class FileDuplicateSearchPage extends QueryPage { 'id' => 'filename', 'size' => 50, 'value' => $this->filename, - 'cssclass' => 'mw-ui-input-inline' ], ]; $hiddenFields = [ 'title' => $this->getPageTitle()->getPrefixedDBkey(), ]; - $htmlForm = HTMLForm::factory( 'inline', $formFields, $this->getContext() ); + $htmlForm = HTMLForm::factory( 'ooui', $formFields, $this->getContext() ); $htmlForm->addHiddenFields( $hiddenFields ); $htmlForm->setAction( wfScript() ); $htmlForm->setMethod( 'get' ); $htmlForm->setSubmitProgressive(); $htmlForm->setSubmitTextMsg( $this->msg( 'fileduplicatesearch-submit' ) ); - $htmlForm->setWrapperLegendMsg( 'fileduplicatesearch-legend' ); // The form should be visible always, even if it was submitted (e.g. to perform another action). // To bypass the callback validation of HTMLForm, use prepareForm() and displayForm(). diff --git a/languages/i18n/en.json b/languages/i18n/en.json index cbf2462410..7b10ec818e 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -3585,7 +3585,6 @@ "redirect-not-exists": "Value not found", "fileduplicatesearch": "Search for duplicate files", "fileduplicatesearch-summary": "Search for duplicate files based on hash values.", - "fileduplicatesearch-legend": "Search for a duplicate", "fileduplicatesearch-filename": "Filename:", "fileduplicatesearch-submit": "Search", "fileduplicatesearch-info": "$1 × $2 pixel
File size: $3
MIME type: $4", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index a2e803e6e7..cc12e8b891 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -3761,7 +3761,6 @@ "redirect-not-exists": "Used as error message in [[Special:Redirect]]", "fileduplicatesearch": "Name of special page [[Special:FileDuplicateSearch]].", "fileduplicatesearch-summary": "Summary of [[Special:FileDuplicateSearch]]", - "fileduplicatesearch-legend": "Legend of the fieldset around the input form of [[Special:FileDuplicateSearch]]", "fileduplicatesearch-filename": "Input form of [[Special:FileDuplicateSearch]]:\n\n{{Identical|Filename}}", "fileduplicatesearch-submit": "Button label on [[Special:FileDuplicateSearch]].\n\n{{Identical|Search}}", "fileduplicatesearch-info": "Information beneath the thumbnail on the right side shown after a successful search via [[Special:FileDuplicateSearch]].\n\nParameters:\n* $1 - width of the file\n* $2 - height of the file\n* $3 - File size\n* $4 - MIME type", -- 2.20.1