From c993ec0095e80c939cdacea690d8677814cdbeb6 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 21 Apr 2014 21:59:43 -0700 Subject: [PATCH] Avoid uncommitted transaction notices in thumb.php and img_auth.php bug: 56269 Change-Id: I8cf5c070899d281c7efbac853f04c2fea9374e4d --- img_auth.php | 4 ++++ thumb.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/img_auth.php b/img_auth.php index dc3dcd8f6d..cce5bc97c0 100644 --- a/img_auth.php +++ b/img_auth.php @@ -50,6 +50,10 @@ $wgActionPaths = array( "$wgUploadPath/" ); wfImageAuthMain(); wfLogProfilingData(); +// Commit and close up! +$factory = wfGetLBFactory(); +$factory->commitMasterChanges(); +$factory->shutdown(); function wfImageAuthMain() { global $wgImgAuthPublicTest, $wgImgAuthUrlPathMap; diff --git a/thumb.php b/thumb.php index df6c416a2e..bfaf9a02d0 100644 --- a/thumb.php +++ b/thumb.php @@ -36,6 +36,10 @@ if ( defined( 'THUMB_HANDLER' ) ) { } wfLogProfilingData(); +// Commit and close up! +$factory = wfGetLBFactory(); +$factory->commitMasterChanges(); +$factory->shutdown(); //-------------------------------------------------------------------------- -- 2.20.1