Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
experimental: false
- mw: 'REL1_46'
php: '8.4'
experimental: true
experimental: false
- mw: 'master'
php: '8.5'
experimental: true
Expand Down
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SimpleBatchUpload",
"version": "3.0.2",
"version": "3.0.3",
"author": [
"[https://www.mediawiki.org/wiki/User:F.trott Stephan Gambke]",
"[https://professional.wiki/ Professional Wiki]",
Expand Down
6 changes: 6 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Release Notes

### SimpleBatchUpload 3.0.3

Released on August 5, 2026.

* Fixed deprecation warning shown on MediaWiki 1.46

### SimpleBatchUpload 3.0.2

Released on July 1, 2026.
Expand Down
13 changes: 6 additions & 7 deletions src/SpecialBatchUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@
*/
class SpecialBatchUpload extends SpecialPage {

/**
* @param string $name Name of the special page, as seen in links and URLs
* @param string $restriction User right required, e.g. "block" or "delete"
* @param bool $listed Whether the page is listed in Special:Specialpages
*/
public function __construct( $name = '', $restriction = '', $listed = true ) {
parent::__construct( 'BatchUpload', 'upload', $listed );
public function __construct() {
parent::__construct( 'BatchUpload' );
}

public function getRestriction(): string {
return 'upload';
}

/**
Expand Down
17 changes: 17 additions & 0 deletions tests/phpunit/SpecialBatchUploadTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace MediaWiki\Extension\SimpleBatchUpload\Tests;

use MediaWiki\Extension\SimpleBatchUpload\SpecialBatchUpload;

/**
* @covers \MediaWiki\Extension\SimpleBatchUpload\SpecialBatchUpload
* @group SimpleBatchUpload
*/
class SpecialBatchUploadTest extends \PHPUnit\Framework\TestCase {

public function testRequiresUploadRight() {
$this->assertSame( 'upload', ( new SpecialBatchUpload() )->getRestriction() );
}

}
Loading