From 3626051ef1f5b3fa7f448edd0109521ea2136a11 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 1 Sep 2008 00:27:18 +0200 Subject: [PATCH] [svn r16185] Little improvements --- main/newscorm/learnpath.class.php | 9 ++++++--- main/newscorm/lp_list_search.php | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index f811bc9196..4f7556cca4 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -6239,9 +6239,12 @@ class learnpath { $select_prerequisites=$form->addElement('select', 'prerequisites', get_lang('Prerequisites').' :', '', 'id="prerequisites" style="background:#F8F8F8; border:1px solid #999999; font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; width:300px;"'); $select_prerequisites->addOption(get_lang("NoPrerequisites"),0,'style="padding-left:3px;"'); - //add terms field - $terms = $form->addElement('text','terms', get_lang('SearchFeatureTerms').' :','id="idTerms" style="background:#F8F8F8; border:1px solid #999999; font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; width:295px;"'); - $terms->setValue($item_terms); + if ( api_get_setting('search_enabled') === 'true' ) + { + //add terms field + $terms = $form->addElement('text','terms', get_lang('SearchFeatureTerms').' :','id="idTerms" style="background:#F8F8F8; border:1px solid #999999; font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; width:295px;"'); + $terms->setValue($item_terms); + } $arrHide=array(); diff --git a/main/newscorm/lp_list_search.php b/main/newscorm/lp_list_search.php index fc6baa7e3c..4e53f051f4 100644 --- a/main/newscorm/lp_list_search.php +++ b/main/newscorm/lp_list_search.php @@ -146,7 +146,7 @@ if ($count > 0) { /* Get the image path */ $img_path = str_replace ('.png.html', '_thumb.png', $row['path']); $doc_id = $row['id']; - $title = get_lang('Title').': '.$row['name'].'

'.$row['title'].(empty($row['author'])?'':'

'.get_lang('Author').': '.$row['author']); + $title = get_lang('Title').': '.''.$row['name'].'

'.$row['title'].(empty($row['author'])?'':'

'.get_lang('Author').': '.$row['author']); $href = sprintf($link_format, $course_id, $lp_id, $doc_id);