mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:10:10 +00:00
Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect()
This commit is contained in:
parent
cc9b7bb14f
commit
8e6973b774
77 changed files with 263 additions and 259 deletions
|
@ -36,7 +36,7 @@ class Details extends BaseAdminModule
|
|||
return;
|
||||
}
|
||||
|
||||
$a->internalRedirect('admin/themes/' . $theme);
|
||||
DI::baseUrl()->redirect('admin/themes/' . $theme);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ class Details extends BaseAdminModule
|
|||
info(L10n::t('Theme %s failed to install.', $theme));
|
||||
}
|
||||
|
||||
$a->internalRedirect('admin/themes/' . $theme);
|
||||
DI::baseUrl()->redirect('admin/themes/' . $theme);
|
||||
}
|
||||
|
||||
$readme = null;
|
||||
|
@ -122,6 +122,6 @@ class Details extends BaseAdminModule
|
|||
]);
|
||||
}
|
||||
|
||||
$a->internalRedirect('admin/themes');
|
||||
DI::baseUrl()->redirect('admin/themes');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ class Embed extends BaseAdminModule
|
|||
return;
|
||||
}
|
||||
|
||||
$a->internalRedirect('admin/themes/' . $theme . '/embed?mode=minimal');
|
||||
DI::baseUrl()->redirect('admin/themes/' . $theme . '/embed?mode=minimal');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ class Index extends BaseAdminModule
|
|||
|
||||
}
|
||||
|
||||
$a->internalRedirect('admin/themes');
|
||||
DI::baseUrl()->redirect('admin/themes');
|
||||
}
|
||||
|
||||
$themes = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue