Browse Source

[svn r13696] harmonize url like in document creation in document tool (absolute url)

Eric Marguin 17 years ago
parent
commit
9ceb1ddaf5
1 changed files with 1 additions and 2 deletions
  1. 1 2
      main/newscorm/learnpath.class.php

+ 1 - 2
main/newscorm/learnpath.class.php

@@ -4041,8 +4041,7 @@ class learnpath {
 		$content = str_replace('flv=h','flv=h|',$content);
 		$content = str_replace('flv=/','flv=/|',$content);		
 		
-		$path_to_remove = api_get_path('WEB_COURSE_PATH') . $_course['path'] . '/document' . $dir;
-		$content = str_replace($path_to_remove, './', $content);
+		$content = str_replace(api_get_path('WEB_COURSE_PATH'), api_get_path(REL_PATH).'courses/', $content);
 		
 		// for flv player : change back the url to absolute
 		$content = str_replace('flv=h|','flv=h',$content);