]> git.mxchange.org Git - friendica.git/blobdiff - mod/uimport.php
Remove unused/empty template variables in register
[friendica.git] / mod / uimport.php
index 2061d4552047c26f1693c144f986b1bf0476f304..dfeab8a2f6e4d45988b567ab86c8ea8056d3e9d3 100644 (file)
@@ -42,14 +42,14 @@ 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");
+       $tpl = Renderer::getMarkupTemplate("uimport.tpl");
        return Renderer::replaceMacros($tpl, [
                '$regbutt' => L10n::t('Import'),
                '$import' => [