Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/261740

Change subject: Use __METHOD__ for DB begin/commit calls
......................................................................

Use __METHOD__ for DB begin/commit calls

Change-Id: Ic52434ab31163cbd2fd80e08a93bcf350565a942
---
M SpecialMoodleWS.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Moodle 
refs/changes/40/261740/1

diff --git a/SpecialMoodleWS.php b/SpecialMoodleWS.php
index 3b9592f..ee6cbd1 100644
--- a/SpecialMoodleWS.php
+++ b/SpecialMoodleWS.php
@@ -20,7 +20,7 @@
                global $wgUser;
 
                $dbw = wfGetDB( DB_MASTER );
-               $dbw->begin();
+               $dbw->begin( __METHOD__ );
                # Do queries
                $res = $dbw->insert(
                        'moodleusers',
@@ -30,7 +30,7 @@
                        __METHOD__,
                        array()
                );
-               $dbw->commit();
+               $dbw->commit( __METHOD__ );
                # function insert( $table, $a, $fname = 'Database::insert', 
$options = array() );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/261740
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic52434ab31163cbd2fd80e08a93bcf350565a942
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Moodle
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to