| @@ -84,12 +84,13 @@ | ||
| 84 | 84 | $mdOriginalFile = md5_file($archive); |
| 85 | 85 | if ($mdOriginalFile !== $payload['checksum']) { |
| 86 | 86 | $loggerHelper->log( |
| 87 | 87 | sprintf( |
| 88 | + // translators: %1$s: link to support, %2$s: </a> | |
| 88 | 89 | __( |
| 89 | 90 | 'A .zip file of the Visual Composer is broken - the checksum check failed. Check your Internet connection, initiate reset under Visual Composer Settings, and try again. |
| 90 | 91 | |
| 91 | -If the problem still occurs, visit %smy.visualcomposer.com/support%s for technical assistance. | |
| 92 | +If the problem still occurs, visit %1$smy.visualcomposer.com/support%2$s for technical assistance. | |
| 92 | 93 | ', |
| 93 | 94 | 'visualcomposer' |
| 94 | 95 | ), |
| 95 | 96 | sprintf( |
| @@ -115,8 +116,12 @@ | ||
| 115 | 116 | * @return array |
| 116 | 117 | */ |
| 117 | 118 | protected function sendAgreeHubTerms(Options $optionsHelper) |
| 118 | 119 | { |
| 120 | + if (!vchelper('HubDownload')->hasAccess()) { | |
| 121 | + return ['status' => false]; | |
| 122 | + } | |
| 123 | + | |
| 119 | 124 | $optionsHelper->set('agreeHubTerms', time()); |
| 120 | 125 | $optionsHelper->deleteTransient('lastBundleUpdate'); |
| 121 | 126 | |
| 122 | 127 | return ['status' => true]; |