Refactor deprecated App::isAjax() to DI::mode()->isAjax()

This commit is contained in:
nupplaPhil 2019-12-16 00:30:39 +01:00
parent 8e6973b774
commit 8b6e123b3f
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
7 changed files with 12 additions and 17 deletions

View file

@ -32,7 +32,7 @@ class Details extends BaseAdminModule
info(L10n::t('Theme settings updated.'));
if ($a->isAjax()) {
if (DI::mode()->isAjax()) {
return;
}

View file

@ -46,7 +46,7 @@ class Embed extends BaseAdminModule
info(L10n::t('Theme settings updated.'));
if ($a->isAjax()) {
if (DI::mode()->isAjax()) {
return;
}