summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2010-07-13 11:38:04 (GMT)
committer Joao Ventura2010-07-13 11:38:04 (GMT)
commit3ebbb392e46198832981c5bf631498084c0922d1 (patch)
tree130a69daa6e91cbba6e4f8d73ab6029874a5486f
parent71a6541289af985d4a6648f5c915d86429f8fe68 (diff)
Fix #785364: solve incompatibility with PHP 5.3 when using TCPDF
-rw-r--r--print_pdf/print_pdf.pages.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/print_pdf/print_pdf.pages.inc b/print_pdf/print_pdf.pages.inc
index 29c5b34..a6dfc40 100644
--- a/print_pdf/print_pdf.pages.inc
+++ b/print_pdf/print_pdf.pages.inc
@@ -354,7 +354,7 @@ function _print_pdf_wkhtmltopdf($print, $html, $filename) {
* contents of the body of the HTML from the original node
* @see theme_print_pdf_tcpdf_footer()
*/
-function theme_print_pdf_dompdf_footer(&$html) {
+function theme_print_pdf_dompdf_footer($html) {
preg_match('!<div class="print-footer">(.*?)</div>!si', $html, $tpl_footer);
$html = str_replace($tpl_footer[0], '', $html);
@@ -401,7 +401,7 @@ function theme_print_pdf_dompdf_footer(&$html) {
* array with the font definition (font name, styles and size)
* @see theme_print_pdf_tcpdf_header()
*/
-function theme_print_pdf_tcpdf_header(&$pdf, &$html, $font) {
+function theme_print_pdf_tcpdf_header($pdf, $html, $font) {
preg_match('!<div class="print-logo">(.*?)</div>!si', $html, $tpl_logo);
preg_match('!<h1 class="print-title">(.*?)</h1>!si', $html, $tpl_title);
preg_match('!<div class="print-site_name">(.*?)</div>!si', $html, $tpl_site_name);
@@ -432,7 +432,7 @@ function theme_print_pdf_tcpdf_header(&$pdf, &$html, $font) {
* current TCPDF object
* @see theme_print_pdf_tcpdf_page()
*/
-function theme_print_pdf_tcpdf_page(&$pdf) {
+function theme_print_pdf_tcpdf_page($pdf) {
// set margins
$pdf->SetMargins(15, 20, 15);
// set auto page breaks
@@ -458,7 +458,7 @@ function theme_print_pdf_tcpdf_page(&$pdf) {
* array with the font definition (font name, styles and size)
* @see theme_print_pdf_tcpdf_content()
*/
-function theme_print_pdf_tcpdf_content(&$pdf, &$html, $font) {
+function theme_print_pdf_tcpdf_content($pdf, $html, $font) {
// set content font
$pdf->setFont($font[0], $font[1], $font[2]);
@@ -495,7 +495,7 @@ function theme_print_pdf_tcpdf_content(&$pdf, &$html, $font) {
* array with the font definition (font name, styles and size)
* @see theme_print_pdf_tcpdf_footer()
*/
-function theme_print_pdf_tcpdf_footer(&$pdf, &$html, $font) {
+function theme_print_pdf_tcpdf_footer($pdf, $html, $font) {
preg_match('!<div class="print-footer">(.*?)</div>!si', $html, $tpl_footer);
$footer = trim(preg_replace('!</?div[^>]*?>!i', '', $tpl_footer[1]));
@@ -517,7 +517,7 @@ function theme_print_pdf_tcpdf_footer(&$pdf, &$html, $font) {
* current TCPDF object
* @see theme_print_pdf_tcpdf_footer2()
*/
-function theme_print_pdf_tcpdf_footer2(&$pdf) {
+function theme_print_pdf_tcpdf_footer2($pdf) {
//Position at 1.5 cm from bottom
$pdf->writeHTMLCell(0, 15, 15, -10, $pdf->footer, 0, 0, 0, TRUE, '');