Forums index page, add table headers for section/week MDL-7480

and fixed section_links block for weekscss format
This commit is contained in:
skodak 2006-11-22 07:48:35 +00:00
parent 607c1bc1c6
commit 2f8d5316a1
2 changed files with 8 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class block_section_links extends block_base {
$course = get_record('course', 'id', $this->instance->pageid);
$context = get_context_instance(CONTEXT_COURSE, $course->id);
if ($course->format == 'weeks') {
if ($course->format == 'weeks' or $course->format == 'weekscss') {
$highlight = ceil((time()-$course->startdate)/604800);
$linktext = get_string('jumptocurrentweek', 'block_section_links');
$sectionname = 'week';