From 9ceb1ddaf5d644c3e56cd34e41c1831d1b9986d3 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Thu, 15 Nov 2007 13:51:39 +0100 Subject: [PATCH] [svn r13696] harmonize url like in document creation in document tool (absolute url) --- main/newscorm/learnpath.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 94942da592..c589d97017 100644 --- a/main/newscorm/learnpath.class.php +++ b/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);