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: I646040078e4ac141b74472de0fbb14066a069eaf
---
M MathObject.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Alex Monk: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/MathObject.php b/MathObject.php
index 1e47e50..103affc 100644
--- a/MathObject.php
+++ b/MathObject.php
@@ -288,7 +288,7 @@
                if ( $dbw == null ) {
                        $dbgiven = false;
                        $dbw = wfGetDB( DB_MASTER );
-                       $dbw->begin();
+                       $dbw->begin( __METHOD__ );
                } else {
                        $dbgiven = true;
                }
@@ -308,7 +308,7 @@
                        . utf8_encode( trim( $feature[ 4 ] ) ) );
                }
                if ( !$dbgiven ) {
-                       $dbw->commit();
+                       $dbw->commit( __METHOD__ );
                }
        }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I646040078e4ac141b74472de0fbb14066a069eaf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Dyiop <[email protected]>
Gerrit-Reviewer: Hcohl <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: Whyameri <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to