]> _ Git - fluidbook_tools.git/commitdiff
wait #5408 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 31 Aug 2022 10:45:30 +0000 (12:45 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 31 Aug 2022 10:45:30 +0000 (12:45 +0200)
src/Links/LayerLink.php
src/Links/ZoomLink.php

index d11b359f1884137fef58db5cb8545179a04a75cc..73294b1db896126a461ae1f77780f24961254e6a 100644 (file)
@@ -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()
index dbd95987e552a72f65b52ad7be1029efef4d4b32..70bcbdb32f3a549143e4633453d4ad7d7f98adc4 100644 (file)
@@ -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;