mikuli.cz

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

commit ae4536ec9fd1cb5b651c6788d139ac35e8bc8832
parent e36479449c510da75e8617495dc5a2297453a9b1
Author: markseu <mark2011@mayberg.se>
Date:   Fri, 21 Nov 2025 18:25:15 +0100

Updated for PHP 8.5 compatibility

Co-Authored-By: Steffen Schultz <steffenschultz@mailbox.org>

Diffstat:
Msystem/extensions/update-available.ini | 8++++----
Msystem/extensions/update-installed.ini | 8++++----
Msystem/workers/install.php | 4++--
Msystem/workers/update.php | 4++--
4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/system/extensions/update-available.ini b/system/extensions/update-available.ini @@ -98,14 +98,14 @@ Status: available system/workers/catalan.php: catalan.php, create, update Extension: Check -Version: 0.9.5 +Version: 0.9.6 Description: Find broken links. Developer: Anna Svensson Tag: feature DownloadUrl: https://github.com/annaesvensson/yellow-check/archive/refs/heads/main.zip DocumentationUrl: https://github.com/annaesvensson/yellow-check DocumentationLanguage: en, de, sv -Published: 2024-04-25 15:31:57 +Published: 2025-11-21 18:18:32 Status: available system/workers/check.php: check.php, create, update @@ -753,14 +753,14 @@ Status: available system/workers/turkish.php: turkish.php, create, update Extension: Update -Version: 0.9.6 +Version: 0.9.7 Description: Keep your extensions up to date. Developer: Anna Svensson Tag: feature DownloadUrl: https://github.com/annaesvensson/yellow-update/archive/refs/heads/main.zip DocumentationUrl: https://github.com/annaesvensson/yellow-update DocumentationLanguage: en, de, sv -Published: 2025-10-15 23:33:25 +Published: 2025-11-21 18:17:47 Status: available system/workers/update.php: update.php, create, update system/workers/updatepatch.bin: updatepatch.php, create, additional diff --git a/system/extensions/update-installed.ini b/system/extensions/update-installed.ini @@ -62,13 +62,13 @@ media/images/photo.jpg: photo.jpg, create, optional media/thumbnails/photo-100x40.jpg: photo-100x40.jpg, create, optional Extension: Install -Version: 0.9.5 +Version: 0.9.6 Description: Install a brand new website. Developer: Anna Svensson DownloadUrl: https://github.com/annaesvensson/yellow-install/archive/refs/heads/main.zip DocumentationUrl: https://github.com/annaesvensson/yellow-install DocumentationLanguage: en, de, sv -Published: 2025-09-03 10:57:50 +Published: 2025-11-21 18:16:25 Status: unassembled system/workers/install.php: install.php, create system/workers/install-language.bin: install-language.bin, compress @source/yellow-language/, create @@ -128,14 +128,14 @@ system/themes/stockholm-opensans-light.woff: stockholm-opensans-light.woff, crea system/themes/stockholm-opensans-regular.woff: stockholm-opensans-regular.woff, create, update, careful Extension: Update -Version: 0.9.6 +Version: 0.9.7 Description: Keep your extensions up to date. Developer: Anna Svensson Tag: feature DownloadUrl: https://github.com/annaesvensson/yellow-update/archive/refs/heads/main.zip DocumentationUrl: https://github.com/annaesvensson/yellow-update DocumentationLanguage: en, de, sv -Published: 2025-10-15 23:33:25 +Published: 2025-11-21 18:17:47 Status: available system/workers/update.php: update.php, create, update system/workers/updatepatch.bin: updatepatch.php, create, additional diff --git a/system/workers/install.php b/system/workers/install.php @@ -2,7 +2,7 @@ // Install extension, https://github.com/annaesvensson/yellow-install class YellowInstall { - const VERSION = "0.9.5"; + const VERSION = "0.9.6"; const PRIORITY = "1"; public $yellow; // access to API @@ -390,7 +390,7 @@ class YellowInstall { curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false); curl_exec($curlHandle); $statusCode = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE); - curl_close($curlHandle); + if (PHP_VERSION_ID<80000) curl_close($curlHandle); if ($statusCode!=200) { $rewrite = false; if ($this->yellow->system->get("coreDebugMode")>=1 && !$rewrite) { diff --git a/system/workers/update.php b/system/workers/update.php @@ -2,7 +2,7 @@ // Update extension, https://github.com/annaesvensson/yellow-update class YellowUpdate { - const VERSION = "0.9.6"; + const VERSION = "0.9.7"; const PRIORITY = "2"; public $yellow; // access to API public $extensions; // number of extensions @@ -904,7 +904,7 @@ class YellowUpdate { $fileData = curl_exec($curlHandle); $statusCode = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE); $redirectUrl = ($statusCode>=300 && $statusCode<=399) ? curl_getinfo($curlHandle, CURLINFO_REDIRECT_URL) : ""; - curl_close($curlHandle); + if (PHP_VERSION_ID<80000) curl_close($curlHandle); if ($statusCode==0) { $statusCode = 450; $this->yellow->page->error($statusCode, "Can't connect to the update server!");