Ver Fonte

Updated install extension

markseu há 3 anos atrás
pai
commit
41b1d3c58c
2 ficheiros alterados com 5 adições e 5 exclusões
  1. 3 3
      system/extensions/install.php
  2. 2 2
      system/extensions/update-current.ini

+ 3 - 3
system/extensions/install.php

@@ -2,7 +2,7 @@
 // Install extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/install
 
 class YellowInstall {
-    const VERSION = "0.8.66";
+    const VERSION = "0.8.67";
     const PRIORITY = "1";
     public $yellow;                 // access to API
     
@@ -347,10 +347,10 @@ class YellowInstall {
             $url = $this->yellow->lookup->normaliseUrl($scheme, $address, $base, $location);
             curl_setopt($curlHandle, CURLOPT_URL, $url);
             curl_setopt($curlHandle, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; YellowCore/".YellowCore::VERSION).")";
-            curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
+            curl_setopt($curlHandle, CURLOPT_NOBODY, 1);
             curl_setopt($curlHandle, CURLOPT_CONNECTTIMEOUT, 30);
             curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
-            $rawData = curl_exec($curlHandle);
+            curl_exec($curlHandle);
             $statusCode = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE);
             $rewrite = $statusCode==200;
             curl_close($curlHandle);

+ 2 - 2
system/extensions/update-current.ini

@@ -64,11 +64,11 @@ media/images/photo.jpg: photo.jpg, create, optional
 media/thumbnails/photo-100x40.jpg: photo-100x40.jpg, create, optional
 
 Extension: Install
-Version: 0.8.66
+Version: 0.8.67
 Description: Install a brand new, shiny website.
 HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/install
 DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/install.zip
-Published: 2022-03-20 21:29:16
+Published: 2022-04-15 12:52:14
 Developer: Datenstrom
 Status: unlisted
 system/extensions/install.php: install.php, create