From: Vincent Vanwaelscappel Date: Wed, 31 Aug 2022 10:45:30 +0000 (+0200) Subject: wait #5408 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=23b8f0063f12651a93f4f06ba67121a1fa4ece9b;p=fluidbook_tools.git wait #5408 @0.25 --- diff --git a/src/Links/LayerLink.php b/src/Links/LayerLink.php index d11b359..73294b1 100644 --- a/src/Links/LayerLink.php +++ b/src/Links/LayerLink.php @@ -18,7 +18,6 @@ class LayerLink extends ImageLink if (!$this->rightClone) { ZoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer'); } - return 'background-image:url(' . $this->getImageUrl() . ');background-size:' . $this->getBackgroundSize() . ';background-position:' . $this->getBackgroundPosition() . ';background-repeat:no-repeat;'; } public function getImageUrl() diff --git a/src/Links/ZoomLink.php b/src/Links/ZoomLink.php index dbd9598..70bcbdb 100644 --- a/src/Links/ZoomLink.php +++ b/src/Links/ZoomLink.php @@ -170,7 +170,7 @@ class ZoomLink extends NormalLink $both = Files::tempnam() . '.jpg'; Imagemagick::append(array($leftfile, $rightfile), $both, 'horizontal'); if (!file_exists($both)) { - die('Error glueing ' . $leftfile . ' and ' . $rightfile); + throw new \Exception('Error glueing ' . $leftfile . ' and ' . $rightfile); } } else { $both = $leftfile;