The site_main_menu block is working with the new filterall style.

This commit is contained in:
stronk7 2005-04-10 23:08:24 +00:00
parent c3cb9fb9a7
commit 0c75bc8c3d

View File

@ -91,9 +91,7 @@ class block_site_main_menu extends block_list {
$this->content->icons[] = '';
}
$instancename = urldecode($modinfo[$modnumber]->name);
if (!empty($CFG->filterall)) {
$instancename = filter_text('<nolink>'.$instancename.'</nolink>', $this->instance->pageid);
}
$instancename = format_string($instancename, true, $this->instance->pageid);
$linkcss = $mod->visible ? '' : ' class="dimmed" ';
if (!empty($modinfo[$modnumber]->extra)) {
$extra = urldecode($modinfo[$modnumber]->extra);