]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5801 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 Mar 2023 10:31:35 +0000 (11:31 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 Mar 2023 10:31:35 +0000 (11:31 +0100)
app/Fluidbook/Links.php

index 5089daba334e2349da734ddb01d6d4b95a130b56..9236e3d9aea6efcf875674810b6d44ac555d4100 100644 (file)
@@ -283,6 +283,9 @@ class Links
     protected static function _fixMultimedia(&$links)
     {
         foreach ($links as $k => $link) {
+            if (isset($link['video_width'], $link['video_height']) && $link['video_width'] == 320 & $link['video_height'] == 240) {
+                $links[$k]['video_width'] = $links[$k]['video_height'] = '';
+            }
             if (isset($link['alternative']) && $link['alternative'] && $link['type'] == 6) {
                 $links[$k]['to'] = $link['alternative'];
                 unset($links[$k]['alternative']);