SamanthaNguyen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/377004 )

Change subject: DB_SLAVE to DB_REPLICA
......................................................................

DB_SLAVE to DB_REPLICA

Change-Id: Id6a12cf1709eaee1533ef80252755ac6c8f7d9ec
---
M extension.json
M includes/specials/SpecialPictureGameHome.php
2 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PictureGame 
refs/changes/04/377004/1

diff --git a/extension.json b/extension.json
index e209bd3..8e15495 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "PictureGame",
-       "version": "4.0.0",
+       "version": "4.0.1",
        "author": [
                "Aaron Wright",
                "Ashish Datta",
diff --git a/includes/specials/SpecialPictureGameHome.php 
b/includes/specials/SpecialPictureGameHome.php
index 400590b..9ce9fc1 100644
--- a/includes/specials/SpecialPictureGameHome.php
+++ b/includes/specials/SpecialPictureGameHome.php
@@ -847,7 +847,7 @@
                $per_row = 3;
                $x = 1;
 
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_REPLICA );
                $total = (int)$dbr->selectField(
                        'picturegame_images',
                        array( 'COUNT(*) AS mycount' ),
@@ -1111,7 +1111,7 @@
 
                $totalVotes = 0;
 
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_REPLICA );
 
                // if imgID is -1 then we need some random IDs
                if( $imgID == -1 ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/377004
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6a12cf1709eaee1533ef80252755ac6c8f7d9ec
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PictureGame
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <[email protected]>
Gerrit-Reviewer: SamanthaNguyen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to