From fa42a689cd05462581222b73cb00f9ff6db37959 Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Wed, 23 Sep 2009 06:17:52 +0000 Subject: [PATCH] navigation MDL-20324 Quick fix to a regression caused by last update --- lib/navigationlib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index d614e4ab769..f904b33712b 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -409,8 +409,10 @@ class navigation_node { $link->add_class('dimmed'); } - $breakoutaction = new breakout_of_frame_action(); - $link->add_action($breakoutaction); + if (!empty($CFG->framename)) { + $breakoutaction = new breakout_of_frame_action(); + $link->add_action($breakoutaction); + } $content = $OUTPUT->link($link); } else {