mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-13 17:48:59 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I99c099428f8a52366fff466867ec846120801e99
This commit is contained in:
parent
cdb99d0756
commit
5c8fab12dd
|
@ -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 ) {
|
||||
|
|
|
@ -33,7 +33,7 @@ class InterwikiHooks {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
$dbr = wfGetDB( DB_SLAVE, [], $wgInterwikiCentralDB );
|
||||
$dbr = wfGetDB( DB_REPLICA, [], $wgInterwikiCentralDB );
|
||||
$res = $dbr->selectRow(
|
||||
'interwiki',
|
||||
'*',
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue