mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-12-18 01:30:42 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I7562a27108030044bdac1cf880ed22e4558f0c83
This commit is contained in:
parent
58e875d16d
commit
819e31d416
|
@ -372,7 +372,7 @@ abstract class BaseBlacklist {
|
|||
// Load all the relevant tables from the correct DB.
|
||||
// This assumes that old_text is the actual text or
|
||||
// that the external store system is at least unified.
|
||||
$row = wfGetDB( DB_SLAVE, [], $wiki )->selectRow(
|
||||
$row = wfGetDB( DB_REPLICA, [], $wiki )->selectRow(
|
||||
[ 'page', 'revision', 'text' ],
|
||||
array_merge(
|
||||
Revision::selectFields(),
|
||||
|
|
|
@ -275,7 +275,7 @@ class SpamBlacklist extends BaseBlacklist {
|
|||
$cache->makeKey( 'external-link-list', $title->getLatestRevID() ),
|
||||
$cache::TTL_MINUTE,
|
||||
function ( $oldValue, &$ttl, array &$setOpts ) use ( $title ) {
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
$setOpts += Database::getCacheSetOptions( $dbr );
|
||||
|
||||
return $dbr->selectFieldValues(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"require-dev": {
|
||||
"jakub-onderka/php-parallel-lint": "0.9.2",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/mediawiki-codesniffer": "0.12.0"
|
||||
"mediawiki/mediawiki-codesniffer": "13.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": "phpcbf",
|
||||
|
|
|
@ -91,7 +91,7 @@ if ( !$regexes ) {
|
|||
exit( 1 );
|
||||
}
|
||||
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
$maxID = $dbr->selectField( 'page', 'MAX(page_id)' );
|
||||
$reportingInterval = 100;
|
||||
|
||||
|
|
Loading…
Reference in a new issue