Browse Source

Added patch for new folder structure

markseu 1 year ago
parent
commit
cb1007bea0

+ 2 - 2
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

+ 2 - 2
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

+ 1 - 7
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");