Skip to content

Commit

Permalink
Use DataDumpFileBackend service (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Nov 21, 2024
1 parent a58cfab commit 16bfde0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions maintenance/generateManageWikiBackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

use Maintenance;
use MediaWiki\MainConfigNames;
use Miraheze\DataDump\DataDump;

class GenerateManageWikiBackup extends Maintenance {

Expand Down Expand Up @@ -114,7 +113,7 @@ public function execute() {
];
}

$backend = DataDump::getBackend();
$backend = $this->getServiceContainer()->get( 'DataDumpFileBackend' )->getBackend();
$backend->prepare( [ 'dir' => $backend->getContainerStoragePath( 'dumps-backup' ) ] );

$backend->quickCreate( [
Expand Down

0 comments on commit 16bfde0

Please sign in to comment.