commit 07d0fcd5639eddfde5e79e54ee72e5be10792f5d
parent baa95233d7c2b3f371a853362dd6badfb3178f3b
Author: markseu <mark2011@mayberg.se>
Date: Sat, 30 Mar 2024 03:48:12 +0100
Refactored code, maximise work not done
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/extensions/update.php b/system/extensions/update.php
@@ -22,7 +22,7 @@ class YellowUpdate {
// Handle update
public function onUpdate($action) {
- if ($action=="install" || $action=="update") { //TODO: remove later, for backwards compatibility
+ 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'!");