diff options
Diffstat (limited to 'MLEB/Translate/api/ApiGroupReview.php')
-rw-r--r-- | MLEB/Translate/api/ApiGroupReview.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MLEB/Translate/api/ApiGroupReview.php b/MLEB/Translate/api/ApiGroupReview.php index bcac0a02..73f84656 100644 --- a/MLEB/Translate/api/ApiGroupReview.php +++ b/MLEB/Translate/api/ApiGroupReview.php @@ -63,7 +63,7 @@ class ApiGroupReview extends ApiBase { } public static function getState( MessageGroup $group, $code ) { - $dbw = wfGetDB( DB_MASTER ); + $dbw = wfGetDB( DB_PRIMARY ); $table = 'translate_groupreviews'; $field = 'tgr_state'; @@ -82,14 +82,14 @@ class ApiGroupReview extends ApiBase { } $table = 'translate_groupreviews'; - $index = [ 'tgr_group', 'tgr_language' ]; + $index = [ 'tgr_group', 'tgr_lang' ]; $row = [ 'tgr_group' => $group->getId(), 'tgr_lang' => $code, 'tgr_state' => $newState, ]; - $dbw = wfGetDB( DB_MASTER ); + $dbw = wfGetDB( DB_PRIMARY ); $dbw->replace( $table, [ $index ], $row, __METHOD__ ); $entry = new ManualLogEntry( 'translationreview', 'group' ); |