mikuli.cz

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

commit cb1007bea0e06be49afd29206ed0c0c9afa5edbe
parent c15c8f8613b3e3578bd9f555ca068ac1450d647c
Author: markseu <mark2011@mayberg.se>
Date:   Fri,  5 Apr 2024 15:55:04 +0200

Added patch for new folder structure

Diffstat:
Msystem/extensions/update-available.ini | 4++--
Msystem/extensions/yellow-extension.ini | 4++--
Msystem/workers/update.php | 8+-------
3 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/system/extensions/update-available.ini b/system/extensions/update-available.ini @@ -777,14 +777,14 @@ Status: available system/workers/turkish.php: turkish.php, create, update Extension: Update -Version: 0.9.1 +Version: 0.9.2 Description: Keep your website 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: 2024-04-04 15:10:35 +Published: 2024-04-05 14:41:10 Status: available system/workers/update.php: update.php, create, update system/workers/updatepatch.bin: updatepatch.php, create, additional diff --git a/system/extensions/yellow-extension.ini b/system/extensions/yellow-extension.ini @@ -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.1 +Version: 0.9.2 Description: Keep your website 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: 2024-04-04 15:10:35 +Published: 2024-04-05 14:41:10 Status: available system/workers/update.php: update.php, create, update system/workers/updatepatch.bin: updatepatch.php, create, additional 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.1"; + const VERSION = "0.9.2"; const PRIORITY = "2"; public $yellow; // access to API public $extensions; // number of extensions @@ -21,12 +21,6 @@ class YellowUpdate { // Handle update public function onUpdate($action) { - if ($action=="clean" || $action=="update") { //TODO: remove later, for backwards compatibility - $fileNameOld = $this->yellow->system->get("coreExtensionDirectory")."update-latest.ini"; - if (is_file($fileNameOld) && !$this->yellow->toolbox->deleteFile($fileNameOld)) { - $this->yellow->toolbox->log("error", "Can't delete file '$fileNameOld'!"); - } - } if ($action=="clean" || $action=="daily") { $statusCode = 200; $path = $this->yellow->system->get("coreExtensionDirectory");