X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fuimport.php;h=dfeab8a2f6e4d45988b567ab86c8ea8056d3e9d3;hb=5a3991d4f7bc929c1087d9275716fc1c8cc299a6;hp=3c80b671be45a308f4449a418705211f059e8de0;hpb=c6ce9ddaa41a59496cbe5cd93ace9bc552478ccd;p=friendica.git diff --git a/mod/uimport.php b/mod/uimport.php index 3c80b671be..dfeab8a2f6 100644 --- a/mod/uimport.php +++ b/mod/uimport.php @@ -9,6 +9,7 @@ use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\UserImport; +use Friendica\Core\Renderer; function uimport_post(App $a) { @@ -41,15 +42,15 @@ function uimport_content(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"),