mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
navigation MDL-20324 Quick fix to a regression caused by last update
This commit is contained in:
parent
fa42a689cd
commit
dfca6e9968
@ -380,7 +380,7 @@ class navigation_node {
|
||||
* @return string The HTML content
|
||||
*/
|
||||
public function content($shorttext=false) {
|
||||
global $OUTPUT, $CFG;
|
||||
global $OUTPUT, $CFG, $PAGE;
|
||||
if (!$this->display) {
|
||||
return '';
|
||||
}
|
||||
@ -409,7 +409,7 @@ class navigation_node {
|
||||
$link->add_class('dimmed');
|
||||
}
|
||||
|
||||
if (!empty($CFG->framename)) {
|
||||
if (!empty($CFG->framename) && $PAGE->generaltype=='topframe') {
|
||||
$breakoutaction = new breakout_of_frame_action();
|
||||
$link->add_action($breakoutaction);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user