Commit e31b5174 authored by amnabilal's avatar amnabilal

[Fix]Fixed empty css write attempt issue. Working fine on trunk now.

parent 3aeb5ec3
......@@ -305,7 +305,7 @@ class PdfGenerator
$themeLib = TikiLib::lib('theme');
$themecss=$themeLib->get_theme_path($prefs['theme'], '', $prefs['theme'] . '.css');
$stylesheet1 = file_get_contents('themes/base_files/css/tiki_base.css'); // external css
$mpdf->WriteHTML($stylesheet,1);
$stylesheet2 = file_get_contents($themecss).'@page,body.print* {background:#fff;color:#000;} p,.print{color:#000;} .editplugin{display:none;visibility:hidden}'; // external css
$stylesheet3 = file_get_contents('vendor/fortawesome/font-awesome/css/font-awesome.min.css'); // external css
$mpdf->WriteHTML('<style>'.$stylesheet1.$stylesheet2.$stylesheet3.$this->bootstrapReplace().'</style><html><body class="print">'.$html."</body></html>");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment