mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 74c748d48aadbfd246780f1fe429ac6ae501447a
parent acd7575fe6844f708c38077f9a36272f8bdef548
Author: markseu <mark2011@mayberg.se>
Date:   Fri, 20 Jul 2018 20:03:20 +0200

Better software update, experimental

Diffstat:
Msystem/plugins/update.php | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/system/plugins/update.php b/system/plugins/update.php @@ -5,7 +5,7 @@ class YellowUpdate { - const VERSION = "0.7.13"; + const VERSION = "0.7.14"; var $yellow; //access to API var $updates; //number of updates @@ -802,6 +802,10 @@ class YellowUpdate { $urlRequest = "https://raw.githubusercontent.com/".$matches[1]."/".$matches[2]; } + if(preg_match("#^https://github.com/(.+)/archive/master.zip$#", $url, $matches)) + { + $urlRequest = "https://codeload.github.com/".$matches[1]."/zip/master"; + } $curlHandle = curl_init(); curl_setopt($curlHandle, CURLOPT_URL, $urlRequest); curl_setopt($curlHandle, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; DatenstromYellow/".YellowCore::VERSION."; SoftwareUpdater)");