jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ic52434ab31163cbd2fd80e08a93bcf350565a942
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Moodle
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits