include login style when necessary

This commit is contained in:
Zach Prezkuta
2012-08-18 14:47:59 -06:00
parent 22bf48cae9
commit b4a4ccfb2b
8 changed files with 33 additions and 11 deletions

View File

@@ -904,6 +904,10 @@ if(! function_exists('login')) {
$tpl = get_markup_template("logout.tpl");
}
else {
$a->page['htmlhead'] .= replace_macros(get_markup_template("login_head.tpl"),array(
'$baseurl' => $a->get_baseurl(true)
));
$tpl = get_markup_template("login.tpl");
$_SESSION['return_url'] = $a->query_string;
}