diff --git a/main/document/document.php b/main/document/document.php index b9bbfe6753..d1ca27d3ce 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -652,7 +652,7 @@ if (isset($_GET['curdirpath']) && $new_content_html ); $new_content_html = str_replace( - '/main/img/', + SYS_CODE_PATH . 'img/', api_get_path(WEB_IMG_PATH), $new_content_html ); diff --git a/main/gradebook/lib/gradebook_functions.inc.php b/main/gradebook/lib/gradebook_functions.inc.php index 8770f3b1fe..c5d835ffe5 100755 --- a/main/gradebook/lib/gradebook_functions.inc.php +++ b/main/gradebook/lib/gradebook_functions.inc.php @@ -676,7 +676,7 @@ function get_user_certificate_content($user_id, $course_code, $is_preview = fals $path_image_in_default_course = api_get_path(WEB_CODE_PATH) . 'default_course_document'; $new_content_html = str_replace('/main/default_course_document', $path_image_in_default_course, $new_content_html); - $new_content_html = str_replace('/main/img/', api_get_path(WEB_IMG_PATH), $new_content_html); + $new_content_html = str_replace(SYS_CODE_PATH . 'img/', api_get_path(WEB_IMG_PATH), $new_content_html); //add print header if ($hide_print_button == false) {