Libraryupgrader has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/380148 )
Change subject: build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
......................................................................
build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I40598f8c34691bbe7b217aa38f24f150a210e2f3
---
M SpecialGadgetUsage.php
M composer.json
M includes/GadgetDefinitionNamespaceRepo.php
3 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gadgets
refs/changes/48/380148/1
diff --git a/SpecialGadgetUsage.php b/SpecialGadgetUsage.php
index 8415ce1..beb94c8 100644
--- a/SpecialGadgetUsage.php
+++ b/SpecialGadgetUsage.php
@@ -67,7 +67,7 @@
* @return array
*/
public function getQueryInfo() {
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_REPLICA );
if ( !$this->activeUsers ) {
return [
'tables' => [ 'user_properties' ],
diff --git a/composer.json b/composer.json
index 021a14c..690f49f 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/includes/GadgetDefinitionNamespaceRepo.php
b/includes/GadgetDefinitionNamespaceRepo.php
index 297a58f..9ed67eb 100644
--- a/includes/GadgetDefinitionNamespaceRepo.php
+++ b/includes/GadgetDefinitionNamespaceRepo.php
@@ -35,7 +35,7 @@
$key,
self::CACHE_TTL,
function ( $oldValue, &$ttl, array &$setOpts ) {
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_REPLICA );
$setOpts += Database::getCacheSetOptions( $dbr
);
return $dbr->selectFieldValues(
@@ -71,7 +71,7 @@
$key,
self::CACHE_TTL,
function ( $old, &$ttl, array &$setOpts ) use ( $id ) {
- $setOpts += Database::getCacheSetOptions(
wfGetDB( DB_SLAVE ) );
+ $setOpts += Database::getCacheSetOptions(
wfGetDB( DB_REPLICA ) );
$title = Title::makeTitleSafe(
NS_GADGET_DEFINITION, $id );
if ( !$title ) {
$ttl = WANObjectCache::TTL_UNCACHEABLE;
--
To view, visit https://gerrit.wikimedia.org/r/380148
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I40598f8c34691bbe7b217aa38f24f150a210e2f3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gadgets
Gerrit-Branch: master
Gerrit-Owner: Libraryupgrader <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits