From: Aaron Schulz Date: Tue, 22 Apr 2014 04:59:43 +0000 (-0700) Subject: Avoid uncommitted transaction notices in thumb.php and img_auth.php X-Git-Tag: 1.31.0-rc.0~16099^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=c993ec0095e80c939cdacea690d8677814cdbeb6;p=lhc%2Fweb%2Fwiklou.git Avoid uncommitted transaction notices in thumb.php and img_auth.php bug: 56269 Change-Id: I8cf5c070899d281c7efbac853f04c2fea9374e4d --- 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(); //--------------------------------------------------------------------------