X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fuimport.php;h=dfeab8a2f6e4d45988b567ab86c8ea8056d3e9d3;hb=5a3991d4f7bc929c1087d9275716fc1c8cc299a6;hp=704439216b5537fe790eac758af7973ee51f99e3;hpb=7edbef9bdc8336e6e842994c3e45f8f29325328a;p=friendica.git diff --git a/mod/uimport.php b/mod/uimport.php index 704439216b..dfeab8a2f6 100644 --- a/mod/uimport.php +++ b/mod/uimport.php @@ -7,7 +7,9 @@ use Friendica\App; 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) { @@ -33,22 +35,22 @@ function uimport_content(App $a) if ($max_dailies) { $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day"); if ($r && $r[0]['total'] >= $max_dailies) { - logger('max daily registrations exceeded.'); + Logger::log('max daily registrations exceeded.'); notice(L10n::t('This site has exceeded the number of allowed daily account registrations. Please try again tomorrow.') . EOL); return; } } - 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"),