]> _ Git - cubeextranet.git/commitdiff
wait #4043 @0:10
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Nov 2020 11:17:51 +0000 (11:17 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Nov 2020 11:17:51 +0000 (11:17 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index be946cc34427943d6bab3332dcbe5367a2401140..bf77e049421d987dd6d3af2f3cb1f189b6707207 100644 (file)
@@ -1205,7 +1205,7 @@ class webVideoLink extends videoLink
 
     public function getHTMLContent()
     {
-        if ($this->video_service !== 0) {
+        if ($this->video_service != 0) {
             return self::getEmbed($this);
         }
 
@@ -1243,8 +1243,8 @@ class webVideoLink extends videoLink
 
     public static function makeVideoTag($link, $width, $height, $compiler)
     {
-        if ($link->video_service === 0) {
-            return videoLink::makeVideoTag($link, $width, $height, $compiler);
+        if ($link->video_service == 0) {
+            return parent::makeVideoTag($link, $width, $height, $compiler);
         }
         return self::getEmbed($link);
     }
@@ -1773,6 +1773,8 @@ class webVideoPopupLink extends videoPopupLink
     public function getURL()
     {
         switch ($this->video_service) {
+            case 0: // Dailymotion
+                return '#/webvideo/youtube/' . $this->to;
             case 1: // Dailymotion
                 return '#/webvideo/dailymotion/' . $this->to;
             case 2: // Vimeo