[svn r12497] fix a bug when there are accents in document steps filenames

skala
Eric Marguin 19 years ago
parent 8601cdc587
commit 895b00247a
  1. 2
      main/newscorm/learnpath.class.php

@ -4175,7 +4175,7 @@ class learnpath {
//TODO: add a path filter //TODO: add a path filter
if($iframe){ if($iframe){
$return .= '<iframe frameborder="0" src="' . api_get_path(WEB_COURSE_PATH) . $_course['path'] . '/document' . $row_doc['path'] . '" style="background:#FFFFFF; border:1px solid #CCCCCC; height:490px; width:100%; margin-top: 20px;"></iframe>'; $return .= '<iframe frameborder="0" src="' . api_get_path(WEB_COURSE_PATH) . $_course['path'] . '/document' . str_replace('%2F','/',urlencode($row_doc['path'])) . '" style="background:#FFFFFF; border:1px solid #CCCCCC; height:490px; width:100%; margin-top: 20px;"></iframe>';
} }
else{ else{
$return .= file_get_contents(api_get_path(SYS_COURSE_PATH) . $_course['path'] . '/document' . $row_doc['path']); $return .= file_get_contents(api_get_path(SYS_COURSE_PATH) . $_course['path'] . '/document' . $row_doc['path']);

Loading…
Cancel
Save