From 8ceffbda86308bc38f0fb27ea1d55c551d4dccdc Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 19 Sep 2013 11:08:23 +0000 Subject: [PATCH] Fix the login for the updated theme. --- themes/enhanced/template.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/enhanced/template.php b/themes/enhanced/template.php index 755863f88d..aebc326c81 100644 --- a/themes/enhanced/template.php +++ b/themes/enhanced/template.php @@ -708,6 +708,10 @@ table tr:nth-last-child(-5) td:first-of-type { foreach($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } + //set a default login destination + if (strlen($_SESSION['login']['destination']['url']) == 0) { + $_SESSION['login']['destination']['url'] = PROJECT_PATH."/core/user_settings/user_dashboard.php"; + } //login form echo "
\n"; echo "
\n";