소스 검색

[svn r14269] fix a bug when editing slides (image url is broken because relative)

Eric Marguin 17 년 전
부모
커밋
b0b635429e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/newscorm/openoffice_presentation.class.php

+ 1 - 1
main/newscorm/openoffice_presentation.class.php

@@ -45,7 +45,7 @@ class OpenofficePresentation extends OpenofficeDocument {
 					'<html>
 					<head></head>
 					<body>
-						<img src="'.$this->file_name.'/'.$file.'" />
+						<img src="'.api_get_path(REL_COURSE_PATH).$_course['path'].'/document/'.$this->created_dir.'/'.$this->file_name.'/'.$file.'" />
 					</body>
 					</html>');
 			fclose($fp);