Refactored code, maximise work not done

This commit is contained in:
markseu 2024-03-30 03:48:12 +01:00
parent baa95233d7
commit 07d0fcd563

View file

@ -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'!");