From 31fa971a5ac87611ce24e61d3a03c99e1879c5a6 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 20 Feb 2008 20:48:38 +0100 Subject: [PATCH] [svn r14332] Removed prerequisites option for chapters as the feature is not available in this context yet --- main/newscorm/learnpath.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index d1c3c84dd2..41ea6c1c38 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -6646,7 +6646,11 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') $return .= 'Edit the current item '.get_lang("Edit").''; $return .= 'Move the current item '.get_lang("Move").''; - $return .= ''.get_lang('Prerequisites').' '.get_lang('Prerequisites').''; + // commented for now as prerequisites cannot be added to chapters + if($item_type != 'dokeos_chapter' && $item_type != 'chapter') + { + $return .= ''.get_lang('Prerequisites').' '.get_lang('Prerequisites').''; + } $return .= 'Delete the current item '.get_lang("Delete").''; //$return .= '

' . ((trim($s_description) == '') ? ''.get_lang("NoDescription").'' : stripslashes(nl2br($s_description))) . '

';