MDL-8582 - reverted changes in print_navigation(), needs some minor rewrite to use print_title()

This commit is contained in:
skodak 2007-02-24 10:19:15 +00:00
parent 177df3c6c5
commit cc6566c8e1

View File

@ -2820,9 +2820,9 @@ function print_navigation ($navigation, $separator=0, $return=false) {
$site->shortname = get_string('home');
}
$navigation = "<li>$separator ". str_replace('->', "</li>\n<li>$separator", s($navigation, false, false)) ."</li>\n";
$navigation = "<li>$separator ". str_replace('->', "</li>\n<li>$separator", $navigation) ."</li>\n";
$output .= '<li class="first"><a '.$CFG->frametarget.' onclick="this.target=\''.$CFG->framename.'\'" href="'. $CFG->wwwroot.((!has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID)) && !empty($USER->id) && !empty($CFG->mymoodleredirect) && !isguest())
? '/my' : '') .'/">'. s($site->shortname) ."</a></li>\n". $navigation;
? '/my' : '') .'/">'. $site->shortname ."</a></li>\n". $navigation;
$output .= "</ul>\n";
}