Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
tiki
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Tiki Wiki CMS Groupware
tiki
Commits
e31b5174
Commit
e31b5174
authored
Nov 10, 2016
by
amnabilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix]Fixed empty css write attempt issue. Working fine on trunk now.
parent
3aeb5ec3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/pdflib.php
lib/pdflib.php
+1
-1
No files found.
lib/pdflib.php
View file @
e31b5174
...
...
@@ -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>"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment