Use AddonHelper in Cron worker and addon console command

This commit is contained in:
Art4 2025-02-04 12:39:54 +00:00
parent 31f62b807a
commit 5497fd3559
2 changed files with 3 additions and 4 deletions

View file

@ -170,7 +170,7 @@ HELP;
throw new RuntimeException($this->l10n->t('Addon already enabled'));
}
AddonCore::install($addon);
$this->addonHelper->installAddon($addon);
return 0;
}
@ -194,7 +194,7 @@ HELP;
throw new RuntimeException($this->l10n->t('Addon already disabled'));
}
AddonCore::uninstall($addon);
$this->addonHelper->uninstallAddon($addon);
return 0;
}