From 6812a5086495b738b9877d91c32cdbd979dd18a3 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 2 Apr 2012 11:50:20 +0200 Subject: [PATCH] Fixing missing icons see BT#4131 --- main/work/work.lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/work/work.lib.php b/main/work/work.lib.php index 87ff35c31f..674e081f3b 100644 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -35,17 +35,17 @@ function display_action_links($id, $cur_dir_path, $show_tool_options, $display_u $display_output = ''; $origin = isset($_GET['origin']) ? Security::remove_XSS($_GET['origin']) : ''; - if (!empty($cur_dir_path)) { + if (!empty($id)) { $display_output .= ''.Display::return_icon('back.png', get_lang('BackToWorksList'),'',ICON_SIZE_MEDIUM).''; } if ($show_tool_options && api_is_allowed_to_edit(null, true) && $origin != 'learnpath') { // Create dir - if (empty($cur_dir_path)) { + if (empty($id)) { $display_output .= ''; $display_output .= Display::return_icon('new_work.png', get_lang('CreateAssignment'),'',ICON_SIZE_MEDIUM).''; } - if (empty($cur_dir_path)) { + if (empty($id)) { // Options $display_output .= ''; $display_output .= Display::return_icon('settings.png', get_lang('EditToolOptions'),'',ICON_SIZE_MEDIUM).''; @@ -69,7 +69,7 @@ function display_action_links($id, $cur_dir_path, $show_tool_options, $display_u if (api_is_allowed_to_edit(null, true)) { global $token; - if (!empty($cur_dir_path)) { + if (!empty($id)) { if (empty($_GET['list']) or Security::remove_XSS($_GET['list']) == 'with') { $display_output .= ''. Display::return_icon('exercice_uncheck.png', get_lang('ViewUsersWithoutTask'),'',ICON_SIZE_MEDIUM)."\n";