Skip to content

Commit

Permalink
Merged earlier redirecftion for site course
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 23, 2004
1 parent e5912bc commit 4ebae17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions course/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
}
}

if ($course->id == SITEID) { // This course is not a real course.
redirect("$CFG->wwwroot/");
}

require_login($course->id);

require_once($CFG->dirroot.'/calendar/lib.php'); /// This is after login because it needs $USER
Expand Down Expand Up @@ -135,10 +139,6 @@

$SESSION->fromdiscussion = "$CFG->wwwroot/course/view.php?id=$course->id";

if (! $course->category) { // This course is not a real course.
redirect("$CFG->wwwroot/");
}

$strcourse = get_string("course");

$loggedinas = "<p class=\"logininfo\">".user_login_string($course, $USER)."</p>";
Expand Down

0 comments on commit 4ebae17

Please sign in to comment.