Browse Source

Fix cache paths when exporting to pdf - refs BT#13834

Angel Fernando Quiroz Campos 7 years ago
parent
commit
c9257e83ec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main/inc/lib/pdf.lib.php

+ 1 - 0
main/inc/lib/pdf.lib.php

@@ -493,6 +493,7 @@ class PDF
             api_get_path(SYS_CODE_PATH).'img/',
             $document_html
         );
+        $document_html = str_replace(api_get_path(WEB_ARCHIVE_PATH), api_get_path(SYS_ARCHIVE_PATH), $document_html);
 
         //replace relative path by absolute path for resources
         //$document_html= str_replace('src="/chamilo/main/default_course_document/', 'temp_template_path', $document_html);// before save src templates not apply