Useless info messages removed

This commit is contained in:
Michael 2020-07-23 06:11:21 +00:00
parent 0b423b73ac
commit 3fc3ded750
39 changed files with 47 additions and 90 deletions

View file

@ -48,8 +48,6 @@ class Details extends BaseAdmin
}
}
info(DI::l10n()->t('Theme settings updated.'));
if (DI::mode()->isAjax()) {
return;
}
@ -91,7 +89,7 @@ class Details extends BaseAdmin
} elseif (Theme::install($theme)) {
info(DI::l10n()->t('Theme %s successfully enabled.', $theme));
} else {
info(DI::l10n()->t('Theme %s failed to install.', $theme));
notice(DI::l10n()->t('Theme %s failed to install.', $theme));
}
DI::baseUrl()->redirect('admin/themes/' . $theme);

View file

@ -62,8 +62,6 @@ class Embed extends BaseAdmin
}
}
info(DI::l10n()->t('Theme settings updated.'));
if (DI::mode()->isAjax()) {
return;
}

View file

@ -66,7 +66,7 @@ class Index extends BaseAdmin
} elseif (Theme::install($theme)) {
info(DI::l10n()->t('Theme %s successfully enabled.', $theme));
} else {
info(DI::l10n()->t('Theme %s failed to install.', $theme));
notice(DI::l10n()->t('Theme %s failed to install.', $theme));
}
}