Pass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 20 Feb 2012 21:36:54 +0000 (21:36 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 20 Feb 2012 21:36:54 +0000 (21:36 +0000)
includes/EditPage.php

index 066864b..8c0e8f2 100644 (file)
@@ -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__ );
                }
        }