[svn r13073] prevent from accents in document filename ... not a beautiful way to do it but I'm open to advises.

skala
Eric Marguin 17 years ago
parent 434f9bda23
commit dd3724fd58
  1. 2
      main/newscorm/resourcelinker.inc.php

@ -1896,7 +1896,7 @@ function rl_get_resource_link_for_learnpath($course_code, $learnpath_id, $id_in_
$sql = "SELECT * FROM $tbl_doc WHERE id=$id";
$result=api_sql_query($sql,__FILE__,__LINE__);
$myrow=Database::fetch_array($result);
$docurl=$myrow['path'];
$docurl=str_replace('%2F','/',urlencode($myrow['path']));
$link .= $main_course_path.'document'.$docurl;
$openmethod=2;
$officedoc=false;

Loading…
Cancel
Save