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

index c7c7d99e66dbd33c0465e378ee22903fc86b7b3b..ff84e3d4ecef4dadf2042e49e250b5e99f19a63d 100644 (file)
                 }
             }
 
-            $forumtobeinserted = true;
-            //If the forum is a teacher forum, then we have to look if it exists in destination course
-            if ($forum->type == "teacher") {
-                //Look for teacher forum in destination course
-                $teacherforum = get_record("forum","course",$restore->course_id,"type","teacher");
-                if ($teacherforum) {
-                    $newid = $teacherforum->id;
-                    $forumtobeinserted = false;
-                }
-            }
-
-            //If the forum has to be inserted
-            if ($forumtobeinserted) {
-                //The structure is equal to the db, so insert the forum
-                $newid = insert_record ("forum",$forum);
-            }
+            $newid = insert_record ('forum', $forum);
+            
 
             //Do some output
             if (!defined('RESTORE_SILENTLY')) {