Refactor deprecated App::isAjax() to DI::mode()->isAjax()
This commit is contained in:
@@ -32,7 +32,7 @@ class Details extends BaseAdminModule
|
||||
|
||||
info(L10n::t('Theme settings updated.'));
|
||||
|
||||
if ($a->isAjax()) {
|
||||
if (DI::mode()->isAjax()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class Embed extends BaseAdminModule
|
||||
|
||||
info(L10n::t('Theme settings updated.'));
|
||||
|
||||
if ($a->isAjax()) {
|
||||
if (DI::mode()->isAjax()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user