From: Alexandre Emsenhuber Date: Mon, 20 Feb 2012 21:36:54 +0000 (+0000) Subject: Pass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit() X-Git-Tag: 1.31.0-rc.0~24604 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=aeff260154bf7f19a52e6b1bb6345c0cbaa18284;p=lhc%2Fweb%2Fwiklou.git Pass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit() --- 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__ ); } }