use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\UserImport;
+use Friendica\Core\Renderer;
function uimport_post(App $a)
{
}
- if (x($_SESSION, 'theme')) {
+ if (!empty($_SESSION['theme'])) {
unset($_SESSION['theme']);
}
- if (x($_SESSION, 'mobile-theme')) {
+ if (!empty($_SESSION['mobile-theme'])) {
unset($_SESSION['mobile-theme']);
}
- $tpl = get_markup_template("uimport.tpl");
- return replace_macros($tpl, [
+ $tpl = Renderer::getMarkupTemplate("uimport.tpl");
+ return Renderer::replaceMacros($tpl, [
'$regbutt' => L10n::t('Import'),
'$import' => [
'title' => L10n::t("Move account"),