Skip to content
Permalink
Browse files

Fixed some recent buggy logic! Thanks, Eagle Eye!

  • Loading branch information...
moodler
moodler committed Jan 29, 2005
1 parent b4a7736 commit c09e00ba62185d4966029f695a77587a6e87cc4f
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/weblib.php
@@ -1636,9 +1636,9 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $meta=
if (substr($path, -1) == '/') {
$path .= 'index';
}
if (empty($path) or $path = '/index') {
if (empty($path) or $path == '/index') {
$pageid = 'site-index';
$pageclass = 'course course-'.SITEID;
$pageclass = 'course';
} else {
$pageid = str_replace('/', '-', $path);
$pageclass = explode('-', $pageid);
@@ -1648,6 +1648,8 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $meta=
if (isset($course->id)) {
$pageclass .= ' course-'.$course->id;
} else {
$pageclass .= ' course-'.SITEID;
}
$bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"';

0 comments on commit c09e00b

Please sign in to comment.
You can’t perform that action at this time.