From 7aecee09774da329fc25d1db98b9ccbdc77f812a Mon Sep 17 00:00:00 2001 From: mark-nielsen Date: Fri, 23 Feb 2007 18:39:13 +0000 Subject: [PATCH] [Fixed] MDL-8610: Updated code to work with the new tab API --- mod/lesson/tabs.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mod/lesson/tabs.php b/mod/lesson/tabs.php index d25c58cc25f..385f38e76b2 100644 --- a/mod/lesson/tabs.php +++ b/mod/lesson/tabs.php @@ -25,10 +25,7 @@ $course = get_record('course', 'id', $lesson->course); } - $tabs = array(); - $row = array(); - $inactive = array(); - + $tabs = $row = $inactive = $activated = array(); /// user attempt count for reports link hover (completed attempts - much faster) $counts = new stdClass; @@ -53,6 +50,7 @@ case 'reportdetail': /// sub tabs for reports (overview and detail) $inactive[] = 'reports'; + $activated[] = 'reports'; $row = array(); $row[] = new tabobject('reportoverview', "$CFG->wwwroot/mod/lesson/report.php?id=$cm->id&action=reportoverview", get_string('overview', 'lesson')); @@ -64,6 +62,7 @@ case 'single': /// sub tabs for edit view (collapsed and expanded aka full) $inactive[] = 'edit'; + $activated[] = 'edit'; $row = array(); $row[] = new tabobject('collapsed', "$CFG->wwwroot/mod/lesson/edit.php?id=$cm->id&mode=collapsed", get_string('collapsed', 'lesson')); @@ -72,6 +71,6 @@ break; } - print_tabs($tabs, $currenttab, $inactive); + print_tabs($tabs, $currenttab, $inactive, $activated); ?>