From: martin Date: Tue, 26 Feb 2002 06:34:29 +0000 (+0000) Subject: Updated to accomodate new "social" format X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4567fb714555b9588f0e446b688206c7667a47d7;p=moodle.git Updated to accomodate new "social" format --- diff --git a/course/lib.php b/course/lib.php index b9872e5805..6c2c3bbb76 100644 --- a/course/lib.php +++ b/course/lib.php @@ -3,8 +3,8 @@ $MAXNEWSDISPLAY = 4; $FORMATS = array ( - "0" => "Non-weekly layout", - "1" => "Weekly layout" + "1" => "Weekly layout", + "2" => "Social layout" ); diff --git a/course/view.php b/course/view.php index f7fc198852..1be1cc2419 100644 --- a/course/view.php +++ b/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);