Change-Id: Ic9e728f8d2f83906fee6c4877296ad0759a7b539
* @return boolean Success indicator
*/
protected function saveExisting( $functionName = null ) {
* @return boolean Success indicator
*/
protected function saveExisting( $functionName = null ) {
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->table->getWriteDbConnection();
$success = $dbw->update(
$this->table->getName(),
$success = $dbw->update(
$this->table->getName(),
* @return boolean Success indicator
*/
protected function insert( $functionName = null, array $options = null ) {
* @return boolean Success indicator
*/
protected function insert( $functionName = null, array $options = null ) {
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->table->getWriteDbConnection();
$success = $dbw->insert(
$this->table->getName(),
$success = $dbw->insert(
$this->table->getName(),
$absoluteAmount = abs( $amount );
$isNegative = $amount < 0;
$absoluteAmount = abs( $amount );
$isNegative = $amount < 0;
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->table->getWriteDbConnection();
$fullField = $this->table->getPrefixedField( $field );
$fullField = $this->table->getPrefixedField( $field );