Commit 3e16d0b6 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier Committed by Bertrand Gauthier
Browse files

Ajout des scriptVars dans les scripts des hearders et du footer

parent adb89ba5
......@@ -401,6 +401,7 @@ class Pdf implements ExporterInterface
'headerTitle' => $this->headerTitle,
'headerSubtitle' => $this->headerSubtitle,
'logo' => $this->logo);
$scriptVars = array_merge($scriptVars, current($this->scriptVars));
// le logo doit être passé ainsi pour pouvoir être référencé dans la balise <img> sous la forme "var:logo"
$this->getMpdf()->imageVars['logo'] = $this->logo;
......@@ -492,6 +493,7 @@ class Pdf implements ExporterInterface
$scriptVars = array(
'footerTitle' => $this->footerTitle);
$scriptVars = array_merge($scriptVars, current($this->scriptVars));
if (isset($this->footerScripts['O'])) {
$footerOdd = $this->getRenderer()->render($this->footerScripts['O'], $scriptVars);
......
Supports Markdown
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