}
wfLogProfilingData();
+// Commit and close up!
+$factory = wfGetLBFactory();
+$factory->commitMasterChanges();
+$factory->shutdown();
//--------------------------------------------------------------------------
} elseif ( $user->pingLimiter( 'renderfile' ) ) {
wfThumbError( 500, wfMessage( 'actionthrottledtext' ) );
return;
- } elseif ( wfThumbIsAttemptThrottled( $img, $thumbName, 5 ) ) {
- wfThumbError( 500, wfMessage( 'thumbnail_image-failure-limit', 5 ) );
+ } elseif ( wfThumbIsAttemptThrottled( $img, $thumbName, 4 ) ) {
+ wfThumbError( 500, wfMessage( 'thumbnail_image-failure-limit', 4 ) );
return;
}