From 5f36ec60c769ad9f3563fb120a23041eec26e490 Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Sun, 24 Sep 2017 05:22:25 +0000 Subject: [PATCH] build: Updating mediawiki/mediawiki-codesniffer to 13.0.0 Change-Id: I90d2696ee78e6647bdc034c55fcab5896ea76f3d --- ContributionScores.php | 2 +- ContributionScores_body.php | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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": {