navigation MDL-20324 Frame busting now occurs for every nav link if framename is not _top

This commit is contained in:
samhemelryk 2009-09-23 09:32:03 +00:00
parent bc6f72350a
commit a4bead671a

View File

@ -409,7 +409,7 @@ class navigation_node {
$link->add_class('dimmed'); $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(); $breakoutaction = new breakout_of_frame_action();
$link->add_action($breakoutaction); $link->add_action($breakoutaction);
} }