Skip to content

Commit

Permalink
Fix: add $hookmanager parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Mar 2, 2012
1 parent 71e5e27 commit 61e90e0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
9 changes: 5 additions & 4 deletions htdocs/core/modules/commande/doc/pdf_edison.modules.php
Expand Up @@ -173,7 +173,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 1, $outputlangs);
$this->_pagehead($pdf, $object, 1, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -249,7 +249,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 0, $outputlangs);
$this->_pagehead($pdf, $object, 0, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -520,9 +520,10 @@ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
* @param Object $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @param object $hookmanager Hookmanager object
* @return void
*/
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
function _pagehead(&$pdf, $object, $showaddress, $outputlangs ,$hookmanager)
{
global $conf,$langs,$mysoc;
$langs->load("orders");
Expand Down Expand Up @@ -651,7 +652,7 @@ function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
$posy+=1;

// Add list of linked objects
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs);
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs,$hookmanager);
if (! empty($linkedobjects))
{
foreach($linkedobjects as $linkedobject)
Expand Down
9 changes: 5 additions & 4 deletions htdocs/core/modules/commande/doc/pdf_einstein.modules.php
Expand Up @@ -219,7 +219,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 1, $outputlangs);
$this->_pagehead($pdf, $object, 1, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -365,7 +365,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 0, $outputlangs);
$this->_pagehead($pdf, $object, 0, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -854,9 +854,10 @@ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
* @param Object $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @param object $hookmanager Hookmanager object
* @return void
*/
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $hookmanager)
{
global $conf,$langs;

Expand Down Expand Up @@ -929,7 +930,7 @@ function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
$posy+=2;

// Add list of linked objects
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs);
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs,$hookmanager);
if (! empty($linkedobjects))
{
foreach($linkedobjects as $linkedobject)
Expand Down
9 changes: 5 additions & 4 deletions htdocs/core/modules/facture/doc/pdf_crabe.modules.php
Expand Up @@ -219,7 +219,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 1, $outputlangs);
$this->_pagehead($pdf, $object, 1, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -369,7 +369,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 0, $outputlangs);
$this->_pagehead($pdf, $object, 0, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -999,9 +999,10 @@ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
* @param Object $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @param object $hookmanager Hookmanager object
* @return void
*/
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $hookmanager)
{
global $conf,$langs;

Expand Down Expand Up @@ -1125,7 +1126,7 @@ function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
$posy+=2;

// Add list of linked objects
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs);
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs,$hookmanager);
if (! empty($linkedobjects))
{
foreach($linkedobjects as $linkedobject)
Expand Down
9 changes: 5 additions & 4 deletions htdocs/core/modules/facture/doc/pdf_oursin.modules.php
Expand Up @@ -199,7 +199,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 1, $outputlangs);
$this->_pagehead($pdf, $object, 1, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -269,7 +269,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 0, $outputlangs);
$this->_pagehead($pdf, $object, 0, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -802,9 +802,10 @@ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $object, $outputlangs)
* @param Object $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @param object $hookmanager Hookmanager object
* @return void
*/
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $hookmanager)
{
global $langs,$conf;
$langs->load("main");
Expand Down Expand Up @@ -1002,7 +1003,7 @@ function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
$posy+=1;

// Add list of linked objects
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs);
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs,$hookmanager);
if (! empty($linkedobjects))
{
foreach($linkedobjects as $linkedobject)
Expand Down
9 changes: 5 additions & 4 deletions htdocs/core/modules/propale/doc/pdf_azur.modules.php
Expand Up @@ -204,7 +204,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 1, $outputlangs);
$this->_pagehead($pdf, $object, 1, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 4, ''); // Set interline to 4
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -350,7 +350,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
$pdf->AddPage();
if (! empty($tplidx)) $pdf->useTemplate($tplidx);
$pagenb++;
$this->_pagehead($pdf, $object, 0, $outputlangs);
$this->_pagehead($pdf, $object, 0, $outputlangs, $hookmanager);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetTextColor(0,0,0);
Expand Down Expand Up @@ -874,9 +874,10 @@ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
* @param Object $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @param object $hookmanager Hookmanager object
* @return void
*/
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $hookmanager)
{
global $conf,$langs;
$default_font_size = pdf_getPDFFontSize($outputlangs);
Expand Down Expand Up @@ -970,7 +971,7 @@ function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
$posy+=2;

// Add list of linked objects
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs);
$linkedobjects = pdf_getLinkedObjects($object,$outputlangs,$hookmanager);
if (! empty($linkedobjects))
{
foreach($linkedobjects as $linkedobject)
Expand Down

0 comments on commit 61e90e0

Please sign in to comment.