mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Header "login" link now breaks out of possible frame
This commit is contained in:
parent
8552044d4d
commit
f426a62eff
1 changed files with 2 additions and 2 deletions
|
@ -33,9 +33,9 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
|
|||
|
||||
if (!$button and $navigation) {
|
||||
if (isset($USER->id)) {
|
||||
$button = "<FONT SIZE=2><A HREF=\"$CFG->wwwroot/login/logout.php\">".get_string("logout")."</A></FONT>";
|
||||
$button = "<FONT SIZE=2><A TARGET=_parent HREF=\"$CFG->wwwroot/login/logout.php\">".get_string("logout")."</A></FONT>";
|
||||
} else {
|
||||
$button = "<FONT SIZE=2><A HREF=\"$CFG->wwwroot/login/index.php\">".get_string("login")."</A></FONT>";
|
||||
$button = "<FONT SIZE=2><A TARGET=_parent HREF=\"$CFG->wwwroot/login/index.php\">".get_string("login")."</A></FONT>";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue