From 324dc32de3b7978ddb2f4ba787a2e9f00073dfb2 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Thu, 8 Oct 2026 13:38:00 -0400 Subject: [PATCH] Show MediaWiki:Batchupload-summary on Special:BatchUpload Same convention as MediaWiki:Upload-summary on Special:Upload, except that the key is not in i18n/en.json: on a non-English wiki, an empty default there would hide the wiki's own page from most readers using another interface language, English included. Checked on Special:BatchUpload/Pics, also with ?uselang=de and ?uselang=x-xss. Considered, omitted: a test, as the change is one call to core's SpecialPage::outputHeader(). Co-Authored-By: Claude Opus 5.5 --- README.md | 3 +++ release-notes.md | 2 ++ src/SpecialBatchUpload.php | 1 + 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 17d4734..b47b1b8 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,9 @@ See the [SimpleBatchUpload usage documentation](https://professional.wiki/en/ext ## Customization +Text on _MediaWiki:Batchupload-summary_ is shown at the top of +_Special:BatchUpload_ and its subpages. + It is possible to specify dedicated parameter sets for the upload of specific file types by editing the _MediaWiki:Simplebatchupload-parameters_ page. Each line of that page is considered as one set of parameters. diff --git a/release-notes.md b/release-notes.md index 1316f82..c2e1d9d 100644 --- a/release-notes.md +++ b/release-notes.md @@ -43,6 +43,8 @@ Changes: rule wrapped in `` can contain `|` * Added a prompt before a file is uploaded over one the wiki already holds, instead of overwriting it * Added a prompt when files in one batch would be uploaded under the same name, instead of letting the last one win +* Added `MediaWiki:Batchupload-summary`, shown at the top of `Special:BatchUpload`, as + `MediaWiki:Upload-summary` is on `Special:Upload` * Fixed the default upload summary being in a user's interface language rather than the wiki's content language, which usually also ignored a summary customised in `MediaWiki:Simplebatchupload-comment` diff --git a/src/SpecialBatchUpload.php b/src/SpecialBatchUpload.php index 1d4aba1..94cdafe 100644 --- a/src/SpecialBatchUpload.php +++ b/src/SpecialBatchUpload.php @@ -59,6 +59,7 @@ protected function getGroupName() { public function execute( $subpage ) { $this->setHeaders(); $this->checkPermissions(); + $this->outputHeader(); $this->addPageContentToOutput( $subpage ); }