public function getHTMLContent()
{
- if ($this->video_service !== 0) {
+ if ($this->video_service != 0) {
return self::getEmbed($this);
}
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);
}
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