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:
+1
-14
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user