From 37a2bf97114ab06309f9ece71110d46e39c6a68a Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 22 Jul 2010 12:37:05 +0200 Subject: [PATCH] Fixing BT#1272 when adding a Chamilo item (quiz, forum, etc) in a LP with a SCO type --- main/newscorm/learnpath.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index e49e1cec7f..037b467fdc 100755 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -2807,8 +2807,8 @@ class learnpath { } - //Fixed issue BT#1272 - If the item type is a Chamilo Quiz, then force it to load the link as a normal Chamilo LP not a SCO - if ($lp_item_type == 'quiz') { + //Fixed issue BT#1272 - If the item type is a Chamilo Item (quiz, link, etc), then change the lp type to thread it as a normal Chamilo LP not a SCO. + if (in_array($lp_item_type, array('quiz', 'document', 'link', 'forum', 'thread', 'student_publication'))) { $lp_type = 1; } //Now go through the specific cases to get the end of the path