From 5cae056c45353ac9f54abbf58ede278f987da3cf Mon Sep 17 00:00:00 2001 From: vyshane Date: Tue, 22 Aug 2006 07:42:34 +0000 Subject: [PATCH] Removed deprecated teacher forum type --- mod/forum/restorelib.php | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/mod/forum/restorelib.php b/mod/forum/restorelib.php index c7c7d99e66..ff84e3d4ec 100644 --- a/mod/forum/restorelib.php +++ b/mod/forum/restorelib.php @@ -75,22 +75,8 @@ } } - $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')) { -- 2.39.5