]> _ Git - fluidbook_tools.git/commitdiff
wip #4793 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Oct 2021 07:15:07 +0000 (09:15 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Oct 2021 07:15:07 +0000 (09:15 +0200)
src/Compiler/Links.php

index 5b658aaab2a78efcca6a5dbc48787c9964f3821b..73b8f25e5fbee326878d9a0338b1174565812cf3 100644 (file)
@@ -9,6 +9,9 @@ use Nette\Utils\Image;
 
 trait Links
 {
+    /**
+     * @throws \SodiumException
+     */
     public function compileLinks()
     {
         /** @var Link[] $links */
@@ -69,7 +72,7 @@ trait Links
 
         foreach ($linksCopy as $k => $linkData) {
             if ($linkData['type'] == 35 || $linkData['type'] == 15 || $linkData['type'] == 39) {
-                $linkData = self::decryptLink($linkData);
+                $linkData = Link::decryptLink($linkData);
                 $animations = ContentLink::parseAnimations($linkData['image_rollover']);
                 foreach ($animations as $animation) {
                     if (isset($animation['backgroundcolor']) && $animation['backgroundcolor'] !== 'transparent') {