build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

Change-Id: I99c099428f8a52366fff466867ec846120801e99
This commit is contained in:
libraryupgrader 2017-09-24 05:27:39 +00:00
parent cdb99d0756
commit 5c8fab12dd
3 changed files with 4 additions and 4 deletions

View file

@ -122,7 +122,7 @@ class SpecialInterwiki extends SpecialPage {
$button = 'delete';
$formContent = '';
} elseif ( $action === 'edit' ) {
$dbr = wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_REPLICA );
$row = $dbr->selectRow( 'interwiki', '*', [ 'iw_prefix' => $prefix ], __METHOD__ );
if ( !$row ) {
@ -313,7 +313,7 @@ class SpecialInterwiki extends SpecialPage {
$iwGlobalPrefixes = [];
if ( $wgInterwikiCentralDB !== null && $wgInterwikiCentralDB !== wfWikiID() ) {
// Fetch list from global table
$dbrCentralDB = wfGetDB( DB_SLAVE, [], $wgInterwikiCentralDB );
$dbrCentralDB = wfGetDB( DB_REPLICA, [], $wgInterwikiCentralDB );
$res = $dbrCentralDB->select( 'interwiki', '*', false, __METHOD__ );
$retval = [];
foreach ( $res as $row ) {

View file

@ -33,7 +33,7 @@ class InterwikiHooks {
return true;
}
}
$dbr = wfGetDB( DB_SLAVE, [], $wgInterwikiCentralDB );
$dbr = wfGetDB( DB_REPLICA, [], $wgInterwikiCentralDB );
$res = $dbr->selectRow(
'interwiki',
'*',

View file

@ -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": {