]> git.mjollnir.org Git - moodle.git/commitdiff
Updated to accomodate new "social" format
authormartin <martin>
Tue, 26 Feb 2002 06:34:29 +0000 (06:34 +0000)
committermartin <martin>
Tue, 26 Feb 2002 06:34:29 +0000 (06:34 +0000)
course/lib.php
course/view.php

index b9872e58054387f1e9bf55532a4b8dda2c77751f..6c2c3bbb76bebdce14ff73a109127f59efbf3c4b 100644 (file)
@@ -3,8 +3,8 @@
 $MAXNEWSDISPLAY = 4;
 
 $FORMATS = array (
-             "0" => "Non-weekly layout",
-             "1" => "Weekly layout"
+             "1" => "Weekly layout",
+             "2" => "Social layout"
            );
 
 
index f7fc1988521f3c5c879b854dc0f120e9b07a92af..1be1cc24192f4be34c599414cbbd148072b08314 100644 (file)
     }
 
     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);