From aeff260154bf7f19a52e6b1bb6345c0cbaa18284 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 20 Feb 2012 21:36:54 +0000 Subject: [PATCH] Pass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit() --- includes/EditPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 066864b604..8c0e8f25b9 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1451,13 +1451,13 @@ class EditPage { global $wgUser; if ( $this->watchthis xor $this->mTitle->userIsWatching() ) { $dbw = wfGetDB( DB_MASTER ); - $dbw->begin(); + $dbw->begin( __METHOD__ ); if ( $this->watchthis ) { WatchAction::doWatch( $this->mTitle, $wgUser ); } else { WatchAction::doUnwatch( $this->mTitle, $wgUser ); } - $dbw->commit(); + $dbw->commit( __METHOD__ ); } } -- 2.20.1