Making section links point to #section-NNN instead of #NNN

This commit is contained in:
defacer 2005-11-23 23:16:24 +00:00
parent 4baeb9b028
commit a7ef57d4da

View File

@ -68,7 +68,7 @@ class block_section_links extends block_base {
if (!empty($display)) {
$link = $CFG->wwwroot.'/course/view.php?id='.$this->instance->pageid.'&'.$sectionname.'=';
} else {
$link = '#';
$link = '#section-';
}
$text = '';
for ($i = $inc; $i <= $course->numsections; $i += $inc) {