Rename method names in AddonHelper

This commit is contained in:
Art4 2025-02-03 14:27:23 +00:00
parent bc6145c684
commit 04df082d4e
5 changed files with 11 additions and 11 deletions

View file

@ -38,7 +38,7 @@ class Index extends BaseAdmin
$addonHelper = DI::addonHelper();
$addon = $_GET['addon'] ?? '';
if ($addonHelper->isEnabled($addon)) {
if ($addonHelper->isAddonEnabled($addon)) {
Addon::uninstall($addon);
DI::sysmsg()->addInfo(DI::l10n()->t('Addon %s disabled.', $addon));
} elseif (Addon::install($addon)) {

View file

@ -186,7 +186,7 @@ class Summary extends BaseAdmin
'$platform' => App::PLATFORM,
'$codename' => App::CODENAME,
'$build' => DI::config()->get('system', 'build'),
'$addons' => [DI::l10n()->t('Active addons'), DI::addonHelper()->getEnabledList()],
'$addons' => [DI::l10n()->t('Active addons'), DI::addonHelper()->getEnabledAddons()],
'$serversettings' => $server_settings,
'$warningtext' => $warningtext,
]);