]> git.mjollnir.org Git - moodle.git/commitdiff
COntinue buttons should break out of frames
authormoodler <moodler>
Sat, 7 Aug 2004 13:43:01 +0000 (13:43 +0000)
committermoodler <moodler>
Sat, 7 Aug 2004 13:43:01 +0000 (13:43 +0000)
lib/weblib.php

index 7ae00d8cb778eed4b239c7affd5cd58612778ec3..b0bcfa418965d6c4f725ee84523c734946992243 100644 (file)
@@ -1214,11 +1214,13 @@ function print_heading_with_help($text, $helppage, $module="moodle", $icon="") {
 
 function print_continue($link) {
 
+    global $CFG;
+
     if (!$link) {
         $link = $_SERVER["HTTP_REFERER"];
     }
 
-    print_heading("<a href=\"$link\">".get_string("continue")."</a>");
+    print_heading("<a target=\"{$CFG->framename}\" href=\"$link\">".get_string("continue")."</a>");
 }