Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to accomodate new "social" format

  • Loading branch information...
commit 4567fb714555b9588f0e446b688206c7667a47d7 1 parent e9ebf2e
martin authored
Showing with 7 additions and 5 deletions.
  1. +2 −2 course/lib.php
  2. +5 −3 course/view.php
View
4 course/lib.php
@@ -3,8 +3,8 @@
$MAXNEWSDISPLAY = 4;
$FORMATS = array (
- "0" => "Non-weekly layout",
- "1" => "Weekly layout"
+ "1" => "Weekly layout",
+ "2" => "Social layout"
);
View
8 course/view.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.