Skip to content

Commit

Permalink
Replace DB_MASTER with DB_PRIMARY
Browse files Browse the repository at this point in the history
DB_MASTER was deprecated in MediaWiki 1.36 and removed in MediaWiki 1.43
  • Loading branch information
Robert Vogel committed Sep 6, 2024
1 parent 4dd8b1f commit 8f5a292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PageContentLanguageDbModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function doUpdate( $expectedLanguageCode, $dbPageLanguage ) {
$title = $this->title;

if ( $connection === null ) {
$connection = wfGetDB( DB_MASTER );
$connection = wfGetDB( DB_PRIMARY );
}

$connection->onTransactionCommitOrIdle( function() use ( $connection, $expectedLanguageCode, $dbPageLanguage, $title ) {
Expand Down

0 comments on commit 8f5a292

Please sign in to comment.