diff --git a/extension.json b/extension.json index 0e7fd98..ac6e6a5 100644 --- a/extension.json +++ b/extension.json @@ -11,7 +11,7 @@ "type": "parserhook", "license-name": "GFDL-1.2", "requires": { - "MediaWiki": ">= 1.34.0" + "MediaWiki": ">= 1.35.3" }, "GroupPermissions": { "*": { diff --git a/includes/AJAXPoll.php b/includes/AJAXPoll.php index 7f0b704..4695031 100644 --- a/includes/AJAXPoll.php +++ b/includes/AJAXPoll.php @@ -52,7 +52,7 @@ class AJAXPoll { $input = trim( strip_tags( $input ) ); $lines = explode( "\n", trim( $input ) ); - $dbw = wfGetDB( DB_MASTER ); + $dbw = wfGetDB( DB_PRIMARY ); /** * Register poll in the database @@ -193,7 +193,7 @@ During the last 48 hours, $tab2[0] votes have been given."; return self::buildHTML( $id, $user, $readonly, '' ); } - $dbw = wfGetDB( DB_MASTER ); + $dbw = wfGetDB( DB_PRIMARY ); if ( $answer != 0 ) { $answer = ++$answer; diff --git a/maintenance/migrateOldAJAXPollUserColumnsToActor.php b/maintenance/migrateOldAJAXPollUserColumnsToActor.php index 15c9e3e..612b8d5 100644 --- a/maintenance/migrateOldAJAXPollUserColumnsToActor.php +++ b/maintenance/migrateOldAJAXPollUserColumnsToActor.php @@ -45,7 +45,7 @@ class MigrateOldAJAXPollUserColumnsToActor extends LoggedUpdateMaintenance { * @return bool True to log the update as done */ protected function doDBUpdates() { - $dbw = $this->getDB( DB_MASTER ); + $dbw = $this->getDB( DB_PRIMARY ); if ( $dbw->fieldExists( 'ajaxpoll_vote', 'poll_vote_id', __METHOD__ ) ) { return true;