PDF: Linux-kompatible Dateipfade für Assets

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3341 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
uli 2017-08-07 04:43:47 +00:00
parent 652eeb16cb
commit dc0a69413f

View file

@ -28,8 +28,8 @@ class Pdf extends TCPDF
public function Header()
{
$backgroundDir = $this->webDir.'\bundles\app\images\header-bg.png';
$logoDir = $this->webDir.'\assetic\\'.$this->getFileName('headerLogo');
$backgroundDir = $this->webDir.'/bundles/app/images/header-bg.png';
$logoDir = $this->webDir.'/assetic/'.$this->getFileName('headerLogo');
$this->Image($backgroundDir, 0, 0, 210, 0, '', '', '', false, 300, 'C');
$this->Image($logoDir, 0, 15, 90, 0, '', '', '', false, 300, 'C');
@ -38,7 +38,7 @@ class Pdf extends TCPDF
public function Footer()
{
$footerDir = $this->webDir.'\assetic\\'.$this->getFileName('footerText');
$footerDir = $this->webDir.'/assetic/'.$this->getFileName('footerText');
$this->ImageSVG($footerDir, 0, 228, 210, '');