projects
/
project/print.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6aba2cf
)
Issue #1251164: remove undefined constant warning in admin pages when TCPDF is selected.
author
Joao Ventura
Wed, 17 Aug 2011 08:30:04 +0000 (10:30 +0200)
committer
Joao Ventura
Wed, 17 Aug 2011 08:30:04 +0000 (10:30 +0200)
print_pdf/print_pdf.module
patch
|
blob
|
blame
|
history
diff --git
a/print_pdf/print_pdf.module
b/print_pdf/print_pdf.module
index
5bebcd2
..
f386a0e
100644
(file)
--- a/
print_pdf/print_pdf.module
+++ b/
print_pdf/print_pdf.module
@@
-636,7
+636,8
@@
function _print_pdf_tcpdf_version() {
}
require_once(DRUPAL_ROOT . '/' . $print_pdf_pdf_tool);
- $pdf = new TCPDF();
+ // Hide warnings, as some TCPDF constants may still be undefined
+ @$pdf = new TCPDF();
return $pdf->getTCPDFVersion();
}