Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions autoupgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ public function uninstall()
$ajaxTab->delete();
}

// Remove the 'autoupgrade' admin directory except backups
$this->getUpgradeContainer()->getFilesystemAdapter()->clearDirectory(_PS_ADMIN_DIR_ . DIRECTORY_SEPARATOR . 'autoupgrade', ['backup']);
if ($this->initAutoloaderIfCompliant()) {
// Remove the 'autoupgrade' admin directory except backups
$this->getUpgradeContainer()->getFilesystemAdapter()->clearDirectory(_PS_ADMIN_DIR_ . DIRECTORY_SEPARATOR . 'autoupgrade', ['backup']);
}

return parent::uninstall();
}
Expand Down