Skip to content

Commit

Permalink
Header "login" link now breaks out of possible frame
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Nov 7, 2002
1 parent 8552044 commit f426a62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
}
}

Expand Down

0 comments on commit f426a62

Please sign in to comment.