Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed wrong variable name in download function

givanz8f6a49c9d39e
diff --git a/system/functions.php b/system/functions.php
index f7e6752..c5084fd 100755
--- a/system/functions.php
+++ b/system/functions.php
@@ -1489,7 +1489,7 @@ function download($url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
- curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ?? 'Vvveb ' . V_VERSION);
+ curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ?? 'Vvveb ' . V_VERSION);
$result = curl_exec($ch);
curl_close($ch);
} else {