Skip to content

Commit

Permalink
navigation MDL-22194 Fixed up navigation a little in legacy course fi…
Browse files Browse the repository at this point in the history
…les browser
  • Loading branch information
Sam Hemelryk committed Jul 23, 2010
1 parent 49a33d8 commit 0e79a0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion files/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@
$file_info = $browser->get_file_info($context, $component, $filearea, $itemid, $filepath, $filename);

$strfiles = get_string("files");
if ($node = $PAGE->settingsnav->find('coursefiles', navigation_node::TYPE_SETTING)) {
$node->make_active();
} else {
$PAGE->navbar->add($strfiles);
}

$PAGE->navbar->add($strfiles);
$PAGE->set_title("$SITE->shortname: $strfiles");
$PAGE->set_heading($SITE->fullname);

Expand Down

0 comments on commit 0e79a0d

Please sign in to comment.