From 819e31d416d88eaceadfbb0e6ff5a4cef40530ff Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Sun, 24 Sep 2017 05:33:27 +0000 Subject: [PATCH] build: Updating mediawiki/mediawiki-codesniffer to 13.0.0 Change-Id: I7562a27108030044bdac1cf880ed22e4558f0c83 --- BaseBlacklist.php | 2 +- SpamBlacklist_body.php | 2 +- composer.json | 2 +- maintenance/cleanup.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BaseBlacklist.php b/BaseBlacklist.php index 8f15aa91..82062e23 100644 --- a/BaseBlacklist.php +++ b/BaseBlacklist.php @@ -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(), diff --git a/SpamBlacklist_body.php b/SpamBlacklist_body.php index b3fb900e..fa9a7178 100644 --- a/SpamBlacklist_body.php +++ b/SpamBlacklist_body.php @@ -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( diff --git a/composer.json b/composer.json index 021a14cb..690f49f6 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/maintenance/cleanup.php b/maintenance/cleanup.php index c56f1482..4e985e51 100644 --- a/maintenance/cleanup.php +++ b/maintenance/cleanup.php @@ -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;