[svn r12380] Fix a bug with links on homepage

skala
Julian Prud'homme 19 years ago
parent 253a0b2cf0
commit 9865331684
  1. 8
      main/course_home/activity.php

@ -276,7 +276,13 @@ function show_tools_category($course_tool_category)
$class=''; $class='';
$qm_or_amp = ((strpos($toolsRow['link'], '?') === FALSE) ? '?' : '&'); $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){ if(strpos($toolsRow['name'],'visio_')!==false){
echo "\t" . ' &nbsp <a ' . $class . ' href="#" onclick="window.open(\'' . htmlspecialchars($toolsRow['link']) . '\',\'window_visio\',config=\'height=\'+(screen.height)+\', width=\'+(screen.width-20)+\', toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\')" target="' . $toolsRow['target'] . '">&nbsp;&nbsp;'; echo "\t" . ' &nbsp <a ' . $class . ' href="#" onclick="window.open(\'' . htmlspecialchars($toolsRow['link']) . '\',\'window_visio\',config=\'height=\'+(screen.height)+\', width=\'+(screen.width-20)+\', toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\')" target="' . $toolsRow['target'] . '">&nbsp;&nbsp;';
} }

Loading…
Cancel
Save