| @@ -212,10 +212,10 @@ | ||
| 212 | 212 | // define the filepath in which the data will be pushed |
| 213 | 213 | 'filename' => $tmp . DIRECTORY_SEPARATOR . 'vikbookingpro.zip', |
| 214 | 214 | // make sure the request is non blocking |
| 215 | 215 | 'blocking' => true, |
| 216 | - // force timeout to 60 seconds | |
| 217 | - 'timeout' => 60, | |
| 216 | + // force timeout to 120 seconds | |
| 217 | + 'timeout' => 120, | |
| 218 | 218 | // disable the SSL peer verification |
| 219 | 219 | 'sslverify' => false, |
| 220 | 220 | ); |
| 221 | 221 | |
| @@ -332,8 +332,17 @@ | ||
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | // process complete, clean up the temporary folder before exiting |
| 335 | 335 | JFolder::delete($dest); |
| 336 | + | |
| 337 | + /** | |
| 338 | + * Trigger an action when the Pro version has been downloaded. | |
| 339 | + * | |
| 340 | + * @param string $key the license key validated. | |
| 341 | + * | |
| 342 | + * @since 1.6.6 | |
| 343 | + */ | |
| 344 | + do_action('vikbooking_license_after_complete', $key); | |
| 336 | 345 | |
| 337 | 346 | // restore template files that could have been overwritten by the Pro package |
| 338 | 347 | VikBookingLoader::import('update.manager'); |
| 339 | 348 | VikBookingUpdateManager::restoreTemplateFiles(); |