From 9865331684247d4ab8c0934116152248d6fcf6ee Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Fri, 11 May 2007 11:30:55 +0200 Subject: [PATCH] [svn r12380] Fix a bug with links on homepage --- main/course_home/activity.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/course_home/activity.php b/main/course_home/activity.php index e1aa2571b0..606dee9b45 100644 --- a/main/course_home/activity.php +++ b/main/course_home/activity.php @@ -276,7 +276,13 @@ function show_tools_category($course_tool_category) $class=''; $qm_or_amp = ((strpos($toolsRow['link'], '?') === FALSE) ? '?' : '&'); - $toolsRow['link'] = $toolsRow['link'].$qm_or_amp.api_get_cidreq(); + //If it's a link, we don't add the cidReq + if($toolsRow['image'] == 'file_html.gif' || $toolsRow['image'] == 'file_html_na.gif'){ + $toolsRow['link'] = $toolsRow['link'].$qm_or_amp; + } + else{ + $toolsRow['link'] = $toolsRow['link'].$qm_or_amp.api_get_cidreq(); + } if(strpos($toolsRow['name'],'visio_')!==false){ echo "\t" . '     '; }