Adding missing href in a str_replace

skala
Julio Montoya 14 years ago
parent 0560d4b8ad
commit 0d1825b1f4
  1. 2
      main/inc/lib/pdf.lib.php

@ -220,7 +220,7 @@ class PDF {
//absolute path for frames.css //TODO: necessary?
$absolute_css_path = api_get_path(WEB_CODE_PATH).'css/'.api_get_setting('stylesheets').'/frames.css';
$document_html = str_replace('href="./css/frames.css"',$absolute_css_path, $document_html);
$document_html = str_replace('href="./css/frames.css"','href="'.$absolute_css_path.'"', $document_html);
//$document_html=str_replace('<link rel="stylesheet" http://my.chamilo.net/main/css/chamilo/frames.css type="text/css" />','', $document_html);

Loading…
Cancel
Save