From a4bead671a8ed77d843a710b3a1669bc2e0bb4dd Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Wed, 23 Sep 2009 09:32:03 +0000 Subject: [PATCH] navigation MDL-20324 Frame busting now occurs for every nav link if framename is not _top --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 4e3b4a73b1e..692fe67fd62 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -409,7 +409,7 @@ class navigation_node { $link->add_class('dimmed'); } - if (!empty($CFG->framename) && $PAGE->generaltype=='topframe') { + if (!empty($CFG->framename) && ($PAGE->generaltype=='topframe' || $CFG->framename!='_top')) { $breakoutaction = new breakout_of_frame_action(); $link->add_action($breakoutaction); }