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: I37366953c88716f294be2bfb8209348ee0381602
---
M OnlineStatus.body.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/OnlineStatus.body.php b/OnlineStatus.body.php
index b7102c2..28d5355 100644
--- a/OnlineStatus.body.php
+++ b/OnlineStatus.body.php
@@ -73,7 +73,7 @@
case 'set':
if ( $stat ) {
$dbw = wfGetDB( DB_MASTER );
- $dbw->begin();
+ $dbw->begin( __METHOD__ );
$actual = $wgUser->getOption( 'online' );
$wgUser->setOption( 'online', $stat );
@@ -83,7 +83,7 @@
}
$wgUser->saveSettings();
$wgUser->invalidateCache();
- $dbw->commit();
+ $dbw->commit( __METHOD__ );
// For grep. Message keys used here:
// onlinestatus-toggle-offline,
onlinestatus-toggle-online
--
To view, visit https://gerrit.wikimedia.org/r/261742
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I37366953c88716f294be2bfb8209348ee0381602
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OnlineStatus
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