mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
navigation MDL-20324 Frame busting now occurs for every nav link if framename is not _top
This commit is contained in:
parent
bc6f72350a
commit
a4bead671a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user