diff --git a/ContributionScores.php b/ContributionScores.php index 508e4d6..8bc5c20 100644 --- a/ContributionScores.php +++ b/ContributionScores.php @@ -59,7 +59,7 @@ function efContributionScores_Render( &$parser, $usertext, $metric = 'score' ) { } $user = User::newFromName( $usertext ); - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); if ( $user instanceof User && $user->isLoggedIn() ) { global $wgLang; diff --git a/ContributionScores_body.php b/ContributionScores_body.php index aba2370..1fe0ae0 100644 --- a/ContributionScores_body.php +++ b/ContributionScores_body.php @@ -32,7 +32,7 @@ class ContributionScores extends IncludableSpecialPage { $opts = explode( ',', strtolower( $options ) ); - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $userTable = $dbr->tableName( 'user' ); $userGroupTable = $dbr->tableName( 'user_groups' ); diff --git a/composer.json b/composer.json index 7c63cad..6394fcf 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "0.9.2", - "mediawiki/mediawiki-codesniffer": "0.12.0", + "mediawiki/mediawiki-codesniffer": "13.0.0", "jakub-onderka/php-console-highlighter": "0.3.2" }, "scripts": {