Skip to content

Commit

Permalink
Refactored code, maximise work not done
Browse files Browse the repository at this point in the history
  • Loading branch information
markseuffert committed Mar 30, 2024
1 parent baa9523 commit 07d0fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/extensions/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function onLoad($yellow) {

// 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'!");
Expand Down

0 comments on commit 07d0fcd

Please sign in to comment.