Permalink
Browse files

Updated to accomodate new "social" format

  • Loading branch information...
1 parent e9ebf2e commit 4567fb714555b9588f0e446b688206c7667a47d7 martin committed Feb 26, 2002
Showing with 7 additions and 5 deletions.
  1. +2 −2 course/lib.php
  2. +5 −3 course/view.php
View
@@ -3,8 +3,8 @@
$MAXNEWSDISPLAY = 4;
$FORMATS = array (
- "0" => "Non-weekly layout",
- "1" => "Weekly layout"
+ "1" => "Weekly layout",
+ "2" => "Social layout"
);
View
@@ -50,12 +50,14 @@
}
switch ($course->format) {
- case 0:
- include("noweeks.php");
- break;
case 1:
include("weeks.php");
break;
+ case 2:
+ include("social.php");
+ break;
+ default:
+ error("Course format not defined yet!");
}
print_footer($course);

0 comments on commit 4567fb7

Please sign in to comment.