From 69e4f4d779cd195603ef5e4fdf842ee3c8fc3839 Mon Sep 17 00:00:00 2001 From: Carlos Vargas Date: Fri, 29 May 2009 00:59:15 +0200 Subject: [PATCH] [svn r21053] minor changes in survey work and glosary see FS#3909 --- main/glossary/index.php | 2 +- main/survey/survey.php | 6 +++--- main/work/work.lib.php | 21 ++++++++++----------- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/main/glossary/index.php b/main/glossary/index.php index 0de33643db..7190c39ef1 100755 --- a/main/glossary/index.php +++ b/main/glossary/index.php @@ -35,7 +35,7 @@ event_access_tool(TOOL_GLOSSARY); if (isset($_GET['action']) && ($_GET['action'] == 'addglossary' || $_GET['action'] == 'edit_glossary')) { $tool=get_lang('GlossaryManagement'); -$interbreadcrumb[] = array ("url"=>"index.php", "name"=> api_ucfirst(get_lang(TOOL_GLOSSARY))); +$interbreadcrumb[] = array ("url"=>"index.php", "name"=> get_lang('Glossary')); } Display::display_header(get_lang(ucfirst($tool))); diff --git a/main/survey/survey.php b/main/survey/survey.php index 5c9cc96ce5..6be2afc238 100644 --- a/main/survey/survey.php +++ b/main/survey/survey.php @@ -1,4 +1,4 @@ -, Ghent University: cleanup, refactoring and rewriting large parts of the code -* @version $Id: survey.php 21034 2009-05-28 11:45:43Z pcool $ +* @version $Id: survey.php 21053 2009-05-28 22:59:15Z cvargas1 $ * * @todo use quickforms for the forms */ @@ -162,7 +162,7 @@ echo '
'.$survey_actions.'
'; if ($survey_data['survey_type']==0) { echo '
'; echo ''.Display::return_icon('yesno.gif').'
'.get_lang('YesNo').'
'; - echo ''.Display::return_icon('mcua.gif').'
'.get_lang('MultipleChoice').'
'; + echo ''.Display::return_icon('mcua.gif').'
'.get_lang('UniqueSelect').'
'; echo ''.Display::return_icon('mcma.gif').'
'.get_lang('MultipleResponse').'
'; echo ''.Display::return_icon('open_answer.gif').'
'.get_lang('Open').'
'; echo ''.Display::return_icon('dropdown.gif').'
'.get_lang('Dropdown').'
'; diff --git a/main/work/work.lib.php b/main/work/work.lib.php index 2d7e44a22b..879f722f73 100644 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -1,4 +1,4 @@ -, Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default. * @author Roan Embrechts, code refactoring and virtual course support * @author Frederic Vauthier, directories management -* @version $Id: work.lib.php 21043 2009-05-28 14:35:45Z pcool $ +* @version $Id: work.lib.php 21053 2009-05-28 22:59:15Z cvargas1 $ */ /** * Displays action links (for admins, authorized groups members and authorized students) @@ -609,16 +609,15 @@ function display_student_publications_list($work_dir,$sub_course_dir,$currentCou $add_to_name = ''; } $show_as_icon = get_work_id($mydir); //true or false - if ($cant_files>0) { - $zip=''.get_lang('Save').''; - } - if ($show_as_icon) { - $row[] = $zip.''.$dir.''.$add_to_name.'
'.$cant_files.' '.$text_file.$dirtext; - } else { - $row[] = ''.$dir.''.$add_to_name.'
'.$cant_files.' '.$text_file.$dirtext; - } + if ($show_as_icon){ + if (is_allowed_to_edit()) { + $zip=''.get_lang('Save').''; + } + $row[] = $zip.''.$dir.''.$add_to_name.'
'.$cant_files.' '.$text_file.$dirtext; + } else { + $row[] = ''.$dir.''.$add_to_name.'
'.$cant_files.' '.$text_file.$dirtext; + } } - if ($count_files!=0) { $row[] = ""; }