Skip to content

Commit

Permalink
Merge branch 'wikimedia:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
harryajc authored Sep 22, 2021
2 parents ba61901 + e7689be commit 3266ca8
Show file tree
Hide file tree
Showing 4 changed files with 530 additions and 759 deletions.
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"manifest_version": 1,
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.32.0"
"MediaWiki": ">= 1.35.3"
},
"MessagesDirs": {
"UserAgreement": [
Expand Down
2 changes: 1 addition & 1 deletion includes/ApiUAAcceptAgreement.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct( $main, $action ) {
*/
public function execute() {
$userId = $this->getUser()->getId();
$dbw = wfGetDB( DB_MASTER );
$dbw = wfGetDB( DB_PRIMARY );
$dbw->upsert(
'useragreement',
[
Expand Down
Loading

0 comments on commit 3266ca8

Please sign in to comment.