Moving course formats into subdirectory.

This is the first step towards more pluggable course formats that can
be just dropped in to the system.
This commit is contained in:
moodler
2003-06-13 08:41:57 +00:00
parent ef5db7243b
commit deca24d5f4
4 changed files with 1 additions and 14 deletions
+1 -14
View File
@@ -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();