]> git.mjollnir.org Git - moodle.git/commitdiff
Removed deprecated forum type teacher.
authorvyshane <vyshane>
Tue, 22 Aug 2006 07:38:01 +0000 (07:38 +0000)
committervyshane <vyshane>
Tue, 22 Aug 2006 07:38:01 +0000 (07:38 +0000)
mod/forum/discuss.php
mod/forum/view.php

index a08e5fa18ff85c4cae6883bd5e3cf8d0228e8fe0..545944a36dcb0fcf65089ed9c59d8b10f5c6e99e 100644 (file)
 /// Also, if we know they should be able to reply, then explicitly set $canreply
 
     $canreply = NULL;   /// No override one way or the other
-
-    if ($forum->type == "teacher") {
-        $groupmode = NOGROUPS;
-    } else {
-        $groupmode = groupmode($course, $cm);
-    }
-
-                                       
+    $groupmode = groupmode($course, $cm);
+    
     
     if ($groupmode and !has_capability('moodle/site:accessallgroups', $modcontext)) {   // Groups must be kept separate
         //change this to ismember
index 9b6c0f5d9bf1faa03fbd7a9b77a8b2ee8eae91ec..c2f6e8e7cd635979bfcf93c4a889f3c46ffc7643 100644 (file)
     }
 
 
-/// Check to see if groups are being used in this forum
-/// and if so, set $currentgroup to reflect the current group
-
-    if ($forum->type == "teacher") {
-        $groupmode = NOGROUPS;
-    } else {
-        $groupmode = groupmode($course, $cm);   // Groups are being used
-    }
+    $groupmode = groupmode($course, $cm);
     
     $currentgroup = get_and_set_current_group($course, $groupmode, $changegroup);