navigation MDL-20324 Quick fix to a regression caused by last update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user