Libraryupgrader has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/380159 )
Change subject: build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
......................................................................
build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I0e548ba6aa03941051d023e342d640204ef7be68
---
M composer.json
M includes/GlobalUsageImagePageHooks.php
M refreshGlobalimagelinks.php
3 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GlobalUsage
refs/changes/59/380159/1
diff --git a/composer.json b/composer.json
index 41bb0d7..7df3c8d 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/GlobalUsageImagePageHooks.php
b/includes/GlobalUsageImagePageHooks.php
index 8536d97..9290bea 100644
--- a/includes/GlobalUsageImagePageHooks.php
+++ b/includes/GlobalUsageImagePageHooks.php
@@ -106,7 +106,7 @@
# we detect this is a bit hacky and less than ideal. See bug
23136 for
# a discussion.
global $wgGlobalUsageDatabase;
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_REPLICA );
if ( $file->getRepoName() == 'local'
&& $dbr->getDBname() != $wgGlobalUsageDatabase
) {
diff --git a/refreshGlobalimagelinks.php b/refreshGlobalimagelinks.php
index 9fa4c53..e9c76cb 100644
--- a/refreshGlobalimagelinks.php
+++ b/refreshGlobalimagelinks.php
@@ -25,7 +25,7 @@
public function execute() {
$pages = explode( ',', $this->getOption( 'pages' ) );
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_REPLICA );
$gdbw = GlobalUsage::getGlobalDB( DB_MASTER );
$gu = new GlobalUsage( wfWikiID(), $gdbw );
--
To view, visit https://gerrit.wikimedia.org/r/380159
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0e548ba6aa03941051d023e342d640204ef7be68
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalUsage
Gerrit-Branch: master
Gerrit-Owner: Libraryupgrader <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits