]> git.mjollnir.org Git - moodle.git/commitdiff
Header "login" link now breaks out of possible frame
authormoodler <moodler>
Thu, 7 Nov 2002 11:18:18 +0000 (11:18 +0000)
committermoodler <moodler>
Thu, 7 Nov 2002 11:18:18 +0000 (11:18 +0000)
lib/moodlelib.php

index 285b7e1d0d0a6de0fb707b2a6caf0e8c24dc9369..eb301d3ab1b4294e97d077b76eab8bd4186827e9 100644 (file)
@@ -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>";
         }
     }