MDL-12676 - generate navigation if none supplied to print_header_simple()

This commit is contained in:
poltawski
2007-12-20 15:48:37 +00:00
parent 176c6e8a23
commit 847af02833
+5
View File
@@ -2749,6 +2749,11 @@ function print_header_simple($title='', $heading='', $navigation='', $focus='',
global $COURSE, $CFG;
// if we have no navigation specified, build it
if( empty($navigation) ){
$navigation = build_navigation('');
}
// If old style nav prepend course short name otherwise leave $navigation object alone
if (!is_newnav($navigation)) {
if ($COURSE->id != SITEID) {