mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-12 14:04:27 +02:00
Use AddonHelper in Cron worker and addon console command
This commit is contained in:
parent
31f62b807a
commit
5497fd3559
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue