Permalink
Browse files

Moving course formats into subdirectory.

This is the first step towards more pluggable course formats that can
be just dropped in to the system.
  • Loading branch information...
1 parent ef5db72 commit deca24d5f4e2f57aa5382d52be9d04e77dfda52b moodler committed Jun 13, 2003
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -86,20 +86,7 @@
}
}
-
- switch ($course->format) {
- case "weeks":
- include("weeks.php");
- break;
- case "social":
- include("social.php");
- break;
- case "topics":
- include("topics.php");
- break;
- default:
- error("Course format not defined yet!");
- }
+ require("format/$course->format.php"); // Include the actual course format
print_footer();

0 comments on commit deca24d

Please sign in to comment.