From 4567fb714555b9588f0e446b688206c7667a47d7 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 26 Feb 2002 06:34:29 +0000 Subject: [PATCH] Updated to accomodate new "social" format --- course/lib.php | 4 ++-- course/view.php | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) 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); -- 2.39.5